TensorDataType

public enum TensorDataType

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
  • int

    A signed two’s complement 32-bit integer

    Declaration

    Swift

    case int