# tflitestatus

Status values returned by runtime operations.

## TfLiteStatus

`enum` · `cpp`

```cpp
enum TfLiteStatus
```

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 status values being members of the enum.

Source: `tensorflow/lite/core/c/c_api_types.h:74`

### kTfLiteOk

`constant` · `cpp`

```cpp
kTfLiteOk = 0
```

Success.

Source: `tensorflow/lite/core/c/c_api_types.h:74`

### kTfLiteError

`constant` · `cpp`

```cpp
kTfLiteError = 1
```

Generally referring to an error in the runtime (i.e. interpreter).

Source: `tensorflow/lite/core/c/c_api_types.h:74`

### kTfLiteDelegateError

`constant` · `cpp`

```cpp
kTfLiteDelegateError = 2
```

Generally referring to an error from a `TfLiteDelegate` itself.

Source: `tensorflow/lite/core/c/c_api_types.h:74`

### kTfLiteApplicationError

`constant` · `cpp`

```cpp
kTfLiteApplicationError = 3
```

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 TF Lite delegate onto a model graph that's already immutable.

Source: `tensorflow/lite/core/c/c_api_types.h:74`

### kTfLiteDelegateDataNotFound

`constant` · `cpp`

```cpp
kTfLiteDelegateDataNotFound = 4
```

Generally referring to serialized delegate data not being found. See tflite::delegates::Serialization.

Source: `tensorflow/lite/core/c/c_api_types.h:74`

### kTfLiteDelegateDataWriteError

`constant` · `cpp`

```cpp
kTfLiteDelegateDataWriteError = 5
```

Generally referring to data-writing issues in delegate serialization. See tflite::delegates::Serialization.

Source: `tensorflow/lite/core/c/c_api_types.h:74`

### kTfLiteDelegateDataReadError

`constant` · `cpp`

```cpp
kTfLiteDelegateDataReadError = 6
```

Generally referring to data-reading issues in delegate serialization. See tflite::delegates::Serialization.

Source: `tensorflow/lite/core/c/c_api_types.h:74`

### kTfLiteUnresolvedOps

`constant` · `cpp`

```cpp
kTfLiteUnresolvedOps = 7
```

Generally 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.

Source: `tensorflow/lite/core/c/c_api_types.h:74`

### kTfLiteCancelled

`constant` · `cpp`

```cpp
kTfLiteCancelled = 8
```

Generally 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.

Source: `tensorflow/lite/core/c/c_api_types.h:74`

### kTfLiteOutputShapeNotKnown

`constant` · `cpp`

```cpp
kTfLiteOutputShapeNotKnown = 9
```

This 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.

Source: `tensorflow/lite/core/c/c_api_types.h:74`
