TensorFlowLite

class TensorFlowLite

Static utility methods for loading the TensorFlowLite runtime.

Summary

Public functions

java-static Unit

Ensure the TensorFlowLite native library has been loaded.

java-static String!

Returns the version of the default TensorFlowLite runtime.

java-static String!

Returns the version of the specified TensorFlowLite runtime.

java-static String!

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

java-static String!

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

java-static String!

This function is deprecated. Prefer using runtimeVersion or schemaVersion.

Public functions

init

java-static fun init(): Unit

Ensure the TensorFlowLite native library has been loaded.

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

runtimeVersion

java-static fun runtimeVersion(): String!

Returns the version of the default TensorFlowLite runtime.

runtimeVersion

java-static fun runtimeVersion(runtime: InterpreterApi.Options.TfLiteRuntime!): String!

Returns the version of the specified TensorFlowLite runtime.

schemaVersion

java-static fun schemaVersion(): String!

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

schemaVersion

java-static fun schemaVersion(runtime: InterpreterApi.Options.TfLiteRuntime!): String!

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

version

java-static fun version(): String!

Returns the version of the underlying TensorFlowLite model schema.