TensorFlowLite

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

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.