   /// - Parameter type: A data type supported by a tensor.
   init?(type: TFL_Type) {
     switch type {
-    case kTfLiteFloat32:
-      self = .float32
-    case kTfLiteFloat16:
-      self = .float16
+    case kTfLiteBool:
+      self = .bool
     case kTfLiteUInt8:
       self = .uInt8
     case kTfLiteInt16:


/// Supported TensorFlow Lite tensor data types.
public enum TensorDataType: Equatable {
  /// 32-bit single precision floating point.
  case float32
  /// 16-bit half precision floating point.
  case float16
  /// 8-bit unsigned integer.
  case uInt8
  /// 16-bit signed integer.

  case int32
  /// 64-bit signed integer.
  case int64
  /// 16-bit half precision floating point.
  case float16
  /// 32-bit single precision floating point.
  case float32

  /// Creates a new tensor data type from the given `TFL_Type` or `nil` if the data type is
  /// unsupported or could not be determined because there was an error.
