TfLiteStatus
C++Note that new error status values may be added in future in order to indicate more fine-grained internal states, therefore, applications should not rely on sta…
enum TfLiteStatusNote that new error status values may be added in future in order to indicate more fine-grained internal states, therefore, applications should not rely on status values being members of the enum.
kTfLiteOk
C++Success.
kTfLiteOk = 0Success.
kTfLiteError
C++Generally referring to an error in the runtime (i.e.
kTfLiteError = 1Generally referring to an error in the runtime (i.e. interpreter).
Generally referring to an error from a TfLiteDelegate itself.
kTfLiteDelegateError = 2Generally referring to an error from a TfLiteDelegate itself.
Generally referring to an error in applying a delegate due to incompatibility between runtime and delegate, e.g., this error is returned when trying to apply a…
kTfLiteApplicationError = 3Generally referring to an error in applying a delegate due to incompatibility between runtime and delegate, e.g., this error is returned when trying to apply a TF Lite delegate onto a model graph that’s already immutable.
Generally referring to serialized delegate data not being found.
kTfLiteDelegateDataNotFound = 4Generally referring to serialized delegate data not being found. See tflite::delegates::Serialization.
Generally referring to data-writing issues in delegate serialization.
kTfLiteDelegateDataWriteError = 5Generally referring to data-writing issues in delegate serialization. See tflite::delegates::Serialization.
Generally referring to data-reading issues in delegate serialization.
kTfLiteDelegateDataReadError = 6Generally referring to data-reading issues in delegate serialization. See tflite::delegates::Serialization.
Generally referring to issues when the TF Lite model has ops that cannot be resolved at runtime.
kTfLiteUnresolvedOps = 7Generally referring to issues when the TF Lite model has ops that cannot be resolved at runtime. This could happen when the specific op is not registered or built with the TF Lite framework.
Generally referring to invocation cancelled by the user.
kTfLiteCancelled = 8Generally referring to invocation cancelled by the user. See interpreter::Cancel. TODO(b/194915839): Implement interpreter::Cancel. TODO(b/250636993): Cancellation triggered by SetCancellationFunction should also return this status code.
This status is returned by Prepare when the output shape cannot be determined but the size of the output tensor is known.
kTfLiteOutputShapeNotKnown = 9This status is returned by Prepare when the output shape cannot be determined but the size of the output tensor is known. For example, the output of reshape is always the same size as the input. This means that such ops may be done in place.