Back to Tensorflow

InterpreterError

tensorflow/lite/g3doc/api_docs/swift/Enums/InterpreterError.html

2.21.02.4 KB
Original Source

InterpreterError

public enum InterpreterError : Error, Equatable, Hashable
extension InterpreterError: LocalizedError
extension InterpreterError: CustomStringConvertible

Errors thrown by the TensorFlow Lite Interpreter.

`

                invalidTensorIndex(index:maxIndex:)
                `

Undocumented

Declaration

Swift

case invalidTensorIndex(index: Int, maxIndex: Int)

`

                invalidTensorDataCount(provided:required:)
                `

Undocumented

Declaration

Swift

case invalidTensorDataCount(provided: Int, required: Int)

`

                invalidTensorDataType
                `

Undocumented

Declaration

Swift

case invalidTensorDataType

`

                failedToLoadModel
                `

Undocumented

Declaration

Swift

case failedToLoadModel

`

                failedToCreateInterpreter
                `

Undocumented

Declaration

Swift

case failedToCreateInterpreter

`

                failedToResizeInputTensor(index:)
                `

Undocumented

Declaration

Swift

case failedToResizeInputTensor(index: Int)

`

                failedToCopyDataToInputTensor
                `

Undocumented

Declaration

Swift

case failedToCopyDataToInputTensor

`

                failedToAllocateTensors
                `

Undocumented

Declaration

Swift

case failedToAllocateTensors

`

                allocateTensorsRequired
                `

Undocumented

Declaration

Swift

case allocateTensorsRequired

`

                invokeInterpreterRequired
                `

Undocumented

Declaration

Swift

case invokeInterpreterRequired

`

                tensorFlowLiteError(_:)
                `

Undocumented

Declaration

Swift

case tensorFlowLiteError(String)

`

                errorDescription
                `

A localized description of the interpreter error.

Declaration

Swift

public var errorDescription: String? { get }

`

                description
                `

A textual representation of the TensorFlow Lite interpreter error.

Declaration

Swift

public var description: String { get }