Back to Tensorflow

TensorFlowLite

tensorflow/lite/g3doc/api_docs/java/org/tensorflow/lite/TensorFlowLite.html

2.21.04.0 KB
Original Source

public final class TensorFlowLite

Static utility methods for loading the TensorFlowLite runtime and native code.

Public Methods

| static void | init() Ensure the TensorFlowLite native library has been loaded.

| | static String | runtimeVersion() Returns the version of the default TensorFlowLite runtime.

| | static String | runtimeVersion(InterpreterApi.Options.TfLiteRuntime runtime) Returns the version of the specified TensorFlowLite runtime.

| | static String | schemaVersion() Returns the version of the TensorFlowLite model schema that is supported by the default TensorFlowLite runtime.

| | static String | schemaVersion(InterpreterApi.Options.TfLiteRuntime runtime) Returns the version of the TensorFlowLite model schema that is supported by the specified TensorFlowLite runtime.

| | static String | version() This method is deprecated. Prefer using or #schemaVersion().

|

Inherited Methods

From class java.lang.Object

| boolean | equals(Object arg0) | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | 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.

public static String runtimeVersion ()

Returns the version of the default TensorFlowLite runtime.

public static String runtimeVersion (InterpreterApi.Options.TfLiteRuntime runtime)

Returns the version of the specified TensorFlowLite runtime.

Parameters

| runtime | |

public static String schemaVersion ()

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

public static String schemaVersion (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 version ()

This method is deprecated.
Prefer using or #schemaVersion().

Returns the version of the underlying TensorFlowLite model schema.