Enumerations
The following enumerations are available globally.
-
Declaration
Swift
public enum ConvMethod
-
Padding mode for operators involving with kernel calculation, like pooling and convolution operators. We follow same behavior as TensorFlow defined.
Valid padding
No padding at all when moving kernel on input tensor.
Same padding
Padding to cover all elements
See moreDeclaration
Swift
public enum PaddingMode: Int
-
The channel order in a N-D tensor.
First
Coming before tensor shape. For example an image with height
H
and widthW
, it will be represented as [C, H, W]Last
Coming after tensor shape. For example an image with height
See moreH
and widthW
, it will be represented as [C, H, W]Declaration
Swift
public enum TensorChannelOrder: Int
-
Two kernels
- Single: Caclulate a single element each thread
- SubMatrix: Caculate a submatrix each thread
Declaration
Swift
public enum MatrixMultKernel
-
Undocumented
See moreDeclaration
Swift
public enum SerranoLoggingType
-
Defined the supported data type stored in Tensor object.
Should be matching with supported scalar data types in Apple’s Metal specification (section 2.1)
Currently compatible with v1.2 with types:
- int32: A signed two’s complement 32-bit integer
- uint32: An unsigned 32-bit integer
- float16: A 16-bit floating-point
- float32: A 32-bit floating-point
Declaration
Swift
public enum TensorDataType
-
Undocumented
See moreDeclaration
Swift
public enum SerranoTensorStatus
-
Learning rate decay method
See moreDeclaration
Swift
public enum LearningRateDecayMethod