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

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 schemaVersion ()

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

public static String version ()

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

Returns the version of the underlying TensorFlowLite model schema.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-05-10 UTC.