# InterpreterError

    public enum InterpreterError : Error, Equatable, Hashable

    extension InterpreterError: LocalizedError

    extension InterpreterError: CustomStringConvertible

Errors thrown by the TensorFlow Lite `https://developers.google.com/edge/api/tflite/swift/Classes/Interpreter.html`.
- `


  ### [invalidTensorIndex(index:maxIndex:)](https://developers.google.com/edge/api/tflite/swift/Enums/InterpreterError#/s:19TensorFlowLiteSwift16InterpreterErrorO07invalidA5IndexyACSi_SitcACmF)


  ` Undocumented

  #### Declaration

  Swift

      case invalidTensorIndex(index: Int, maxIndex: Int)

- `


  ### [invalidTensorDataCount(provided:required:)](https://developers.google.com/edge/api/tflite/swift/Enums/InterpreterError#/s:19TensorFlowLiteSwift16InterpreterErrorO07invalidA9DataCountyACSi_SitcACmF)


  ` Undocumented

  #### Declaration

  Swift

      case invalidTensorDataCount(provided: Int, required: Int)

- `


  ### [invalidTensorDataType](https://developers.google.com/edge/api/tflite/swift/Enums/InterpreterError#/s:19TensorFlowLiteSwift16InterpreterErrorO07invalidA8DataTypeyA2CmF)


  ` Undocumented

  #### Declaration

  Swift

      case invalidTensorDataType

- `


  ### [failedToLoadModel](https://developers.google.com/edge/api/tflite/swift/Enums/InterpreterError#/s:19TensorFlowLiteSwift16InterpreterErrorO17failedToLoadModelyA2CmF)


  ` Undocumented

  #### Declaration

  Swift

      case failedToLoadModel

- `


  ### [failedToCreateInterpreter](https://developers.google.com/edge/api/tflite/swift/Enums/InterpreterError#/s:19TensorFlowLiteSwift16InterpreterErrorO014failedToCreateE0yA2CmF)


  ` Undocumented

  #### Declaration

  Swift

      case failedToCreateInterpreter

- `


  ### [failedToResizeInputTensor(index:)](https://developers.google.com/edge/api/tflite/swift/Enums/InterpreterError#/s:19TensorFlowLiteSwift16InterpreterErrorO019failedToResizeInputA0yACSi_tcACmF)


  ` Undocumented

  #### Declaration

  Swift

      case failedToResizeInputTensor(index: Int)

- `


  ### [failedToCopyDataToInputTensor](https://developers.google.com/edge/api/tflite/swift/Enums/InterpreterError#/s:19TensorFlowLiteSwift16InterpreterErrorO016failedToCopyDatah5InputA0yA2CmF)


  ` Undocumented

  #### Declaration

  Swift

      case failedToCopyDataToInputTensor

- `


  ### [failedToAllocateTensors](https://developers.google.com/edge/api/tflite/swift/Enums/InterpreterError#/s:19TensorFlowLiteSwift16InterpreterErrorO23failedToAllocateTensorsyA2CmF)


  ` Undocumented

  #### Declaration

  Swift

      case failedToAllocateTensors

- `


  ### [allocateTensorsRequired](https://developers.google.com/edge/api/tflite/swift/Enums/InterpreterError#/s:19TensorFlowLiteSwift16InterpreterErrorO23allocateTensorsRequiredyA2CmF)


  ` Undocumented

  #### Declaration

  Swift

      case allocateTensorsRequired

- `


  ### [invokeInterpreterRequired](https://developers.google.com/edge/api/tflite/swift/Enums/InterpreterError#/s:19TensorFlowLiteSwift16InterpreterErrorO06invokeE8RequiredyA2CmF)


  ` Undocumented

  #### Declaration

  Swift

      case invokeInterpreterRequired

- `


  ### [tensorFlowLiteError(_:)](https://developers.google.com/edge/api/tflite/swift/Enums/InterpreterError#/s:19TensorFlowLiteSwift16InterpreterErrorO06tensorbcF0yACSScACmF)


  ` Undocumented

  #### Declaration

  Swift

      case tensorFlowLiteError(String)

- `


  ### [errorDescription](https://developers.google.com/edge/api/tflite/swift/Enums/InterpreterError#/s:19TensorFlowLiteSwift16InterpreterErrorO16errorDescriptionSSSgvp)


  ` A localized description of the interpreter error.

  #### Declaration

  Swift

      public var errorDescription: String? { get }

- `


  ### [description](https://developers.google.com/edge/api/tflite/swift/Enums/InterpreterError#/s:19TensorFlowLiteSwift16InterpreterErrorO11descriptionSSvp)


  ` A textual representation of the TensorFlow Lite interpreter error.

  #### Declaration

  Swift

      public var description: String { get }