Google I/O returns May 18-20! Reserve space and build your schedule Register now

TensorFlowLiteSwift Framework Reference

DataType

public enum DataType : Equatable, Hashable

The supported Tensor data types.

  • A boolean.

    Declaration

    Swift

    case bool
  • An 8-bit unsigned integer.

    Declaration

    Swift

    case uInt8
  • A 16-bit signed integer.

    Declaration

    Swift

    case int16
  • A 32-bit signed integer.

    Declaration

    Swift

    case int32
  • A 64-bit signed integer.

    Declaration

    Swift

    case int64
  • A 16-bit half precision floating point.

    Declaration

    Swift

    case float16
  • A 32-bit single precision floating point.

    Declaration

    Swift

    case float32
  • A 64-bit double precision floating point.

    Declaration

    Swift

    case float64