# DataType

    public enum DataType : Equatable, Hashable

The supported `https://developers.google.com/edge/api/tflite/swift/Structs/Tensor.html` data types.
- `


  ### [bool](https://developers.google.com/edge/api/tflite/swift/Structs/Tensor/DataType#/s:19TensorFlowLiteSwift0A0V8DataTypeO4boolyA2EmF)


  ` A boolean.

  #### Declaration

  Swift

      case bool

- `


  ### [uInt8](https://developers.google.com/edge/api/tflite/swift/Structs/Tensor/DataType#/s:19TensorFlowLiteSwift0A0V8DataTypeO5uInt8yA2EmF)


  ` An 8-bit unsigned integer.

  #### Declaration

  Swift

      case uInt8

- `


  ### [int16](https://developers.google.com/edge/api/tflite/swift/Structs/Tensor/DataType#/s:19TensorFlowLiteSwift0A0V8DataTypeO5int16yA2EmF)


  ` A 16-bit signed integer.

  #### Declaration

  Swift

      case int16

- `


  ### [int32](https://developers.google.com/edge/api/tflite/swift/Structs/Tensor/DataType#/s:19TensorFlowLiteSwift0A0V8DataTypeO5int32yA2EmF)


  ` A 32-bit signed integer.

  #### Declaration

  Swift

      case int32

- `


  ### [int64](https://developers.google.com/edge/api/tflite/swift/Structs/Tensor/DataType#/s:19TensorFlowLiteSwift0A0V8DataTypeO5int64yA2EmF)


  ` A 64-bit signed integer.

  #### Declaration

  Swift

      case int64

- `


  ### [float16](https://developers.google.com/edge/api/tflite/swift/Structs/Tensor/DataType#/s:19TensorFlowLiteSwift0A0V8DataTypeO7float16yA2EmF)


  ` A 16-bit half precision floating point.

  #### Declaration

  Swift

      case float16

- `


  ### [float32](https://developers.google.com/edge/api/tflite/swift/Structs/Tensor/DataType#/s:19TensorFlowLiteSwift0A0V8DataTypeO7float32yA2EmF)


  ` A 32-bit single precision floating point.

  #### Declaration

  Swift

      case float32

- `


  ### [float64](https://developers.google.com/edge/api/tflite/swift/Structs/Tensor/DataType#/s:19TensorFlowLiteSwift0A0V8DataTypeO7float64yA2EmF)


  ` A 64-bit double precision floating point.

  #### Declaration

  Swift

      case float64