public final class **TensorFlowLite** Static utility methods for loading the TensorFlowLite runtime and native code.

### Public Methods

|---|---|
| static void | [init](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/TensorFlowLite#init())() Ensure the TensorFlowLite native library has been loaded. |
| static [String](https://developer.android.com/reference/java/lang/String.html) | [runtimeVersion](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/TensorFlowLite#runtimeVersion())() Returns the version of the default TensorFlowLite runtime. |
| static [String](https://developer.android.com/reference/java/lang/String.html) | [runtimeVersion](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/TensorFlowLite#runtimeVersion(org.tensorflow.lite.InterpreterApi.Options.TfLiteRuntime))([InterpreterApi.Options.TfLiteRuntime](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/InterpreterApi.Options.TfLiteRuntime) runtime) Returns the version of the specified TensorFlowLite runtime. |
| static [String](https://developer.android.com/reference/java/lang/String.html) | [schemaVersion](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/TensorFlowLite#schemaVersion())() Returns the version of the TensorFlowLite model schema that is supported by the default TensorFlowLite runtime. |
| static [String](https://developer.android.com/reference/java/lang/String.html) | [schemaVersion](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/TensorFlowLite#schemaVersion(org.tensorflow.lite.InterpreterApi.Options.TfLiteRuntime))([InterpreterApi.Options.TfLiteRuntime](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/InterpreterApi.Options.TfLiteRuntime) runtime) Returns the version of the TensorFlowLite model schema that is supported by the specified TensorFlowLite runtime. |
| static [String](https://developer.android.com/reference/java/lang/String.html) | [version](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/TensorFlowLite#version())() *This method is deprecated. Prefer using `https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/TensorFlowLite#runtimeVersion()`.* |

### Inherited Methods

From class java.lang.Object

|---|---|
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Methods

#### public static void
**init**
()

Ensure the TensorFlowLite native library has been loaded.

If unsuccessful, throws an UnsatisfiedLinkError with the appropriate error message.

<br />

#### public static [String](https://developer.android.com/reference/java/lang/String.html)
**runtimeVersion**
()

Returns the version of the default TensorFlowLite runtime.

#### public static [String](https://developer.android.com/reference/java/lang/String.html)
**runtimeVersion**
([InterpreterApi.Options.TfLiteRuntime](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/InterpreterApi.Options.TfLiteRuntime) runtime)

Returns the version of the specified TensorFlowLite runtime.

##### Parameters

| runtime |   |
|---|---|

#### public static [String](https://developer.android.com/reference/java/lang/String.html)
**schemaVersion**
()

Returns the version of the TensorFlowLite model schema that is supported by the default
TensorFlowLite runtime.

#### public static [String](https://developer.android.com/reference/java/lang/String.html)
**schemaVersion**
([InterpreterApi.Options.TfLiteRuntime](https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/InterpreterApi.Options.TfLiteRuntime) runtime)

Returns the version of the TensorFlowLite model schema that is supported by the specified
TensorFlowLite runtime.

##### Parameters

| runtime |   |
|---|---|

#### public static [String](https://developer.android.com/reference/java/lang/String.html)
**version**
()


**This method is deprecated** .  
Prefer using `https://developers.google.com/edge/api/tflite/java/org/tensorflow/lite/TensorFlowLite#runtimeVersion()`.

Returns the version of the underlying TensorFlowLite model schema.

<br />