[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-10 UTC."],[],[],null,["# TensorFlowLite\n\npublic final class **TensorFlowLite** \nStatic utility methods for loading the TensorFlowLite runtime and native code. \n\n### Public Methods\n\n|--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static void | [init](/edge/api/tflite/java/org/tensorflow/lite/TensorFlowLite#init())() Ensure the TensorFlowLite native library has been loaded. |\n| static [String](https://developer.android.com/reference/java/lang/String.html) | [runtimeVersion](/edge/api/tflite/java/org/tensorflow/lite/TensorFlowLite#runtimeVersion())() Returns the version of the default TensorFlowLite runtime. |\n| static [String](https://developer.android.com/reference/java/lang/String.html) | [runtimeVersion](/edge/api/tflite/java/org/tensorflow/lite/TensorFlowLite#runtimeVersion(org.tensorflow.lite.InterpreterApi.Options.TfLiteRuntime))([InterpreterApi.Options.TfLiteRuntime](/edge/api/tflite/java/org/tensorflow/lite/InterpreterApi.Options.TfLiteRuntime) runtime) Returns the version of the specified TensorFlowLite runtime. |\n| static [String](https://developer.android.com/reference/java/lang/String.html) | [schemaVersion](/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. |\n| static [String](https://developer.android.com/reference/java/lang/String.html) | [schemaVersion](/edge/api/tflite/java/org/tensorflow/lite/TensorFlowLite#schemaVersion(org.tensorflow.lite.InterpreterApi.Options.TfLiteRuntime))([InterpreterApi.Options.TfLiteRuntime](/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. |\n| static [String](https://developer.android.com/reference/java/lang/String.html) | [version](/edge/api/tflite/java/org/tensorflow/lite/TensorFlowLite#version())() *This method is deprecated. Prefer using [or #schemaVersion()](/edge/api/tflite/java/org/tensorflow/lite/TensorFlowLite#runtimeVersion()).* |\n\n### Inherited Methods\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|\n| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |\n| final [Class](https://developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public static void\n**init**\n()\n\nEnsure the TensorFlowLite native library has been loaded.\n\nIf unsuccessful, throws an UnsatisfiedLinkError with the appropriate error message.\n\n\u003cbr /\u003e\n\n#### public static [String](https://developer.android.com/reference/java/lang/String.html)\n**runtimeVersion**\n()\n\nReturns the version of the default TensorFlowLite runtime. \n\n#### public static [String](https://developer.android.com/reference/java/lang/String.html)\n**runtimeVersion**\n([InterpreterApi.Options.TfLiteRuntime](/edge/api/tflite/java/org/tensorflow/lite/InterpreterApi.Options.TfLiteRuntime) runtime)\n\nReturns the version of the specified TensorFlowLite runtime. \n\n##### Parameters\n\n| runtime | |\n|---------|---|\n\n#### public static [String](https://developer.android.com/reference/java/lang/String.html)\n**schemaVersion**\n()\n\nReturns the version of the TensorFlowLite model schema that is supported by the default\nTensorFlowLite runtime. \n\n#### public static [String](https://developer.android.com/reference/java/lang/String.html)\n**schemaVersion**\n([InterpreterApi.Options.TfLiteRuntime](/edge/api/tflite/java/org/tensorflow/lite/InterpreterApi.Options.TfLiteRuntime) runtime)\n\nReturns the version of the TensorFlowLite model schema that is supported by the specified\nTensorFlowLite runtime. \n\n##### Parameters\n\n| runtime | |\n|---------|---|\n\n#### public static [String](https://developer.android.com/reference/java/lang/String.html)\n**version**\n()\n\n\n**This method is deprecated** . \nPrefer using [or #schemaVersion()](/edge/api/tflite/java/org/tensorflow/lite/TensorFlowLite#runtimeVersion()).\n\nReturns the version of the underlying TensorFlowLite model schema.\n\n\u003cbr /\u003e"]]