tf.load_library  |  TensorFlow v2.16.1 (original) (raw)

tf.load_library

Stay organized with collections Save and categorize content based on your preferences.

Loads a TensorFlow plugin.

View aliases

Compat aliases for migration

SeeMigration guide for more details.

tf.compat.v1.load_library

tf.load_library(
    library_location
)

"library_location" can be a path to a specific shared object, or a folder. If it is a folder, all shared objects that are named "libtfkernel*" will be loaded. When the library is loaded, kernels registered in the library via theREGISTER_* macros are made available in the TensorFlow process.

Args
library_location Path to the plugin or the folder of plugins. Relative or absolute filesystem path to a dynamic library file or folder.
Returns
None
Raises
OSError When the file to be loaded is not found.
RuntimeError when unable to load the library.

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. Some content is licensed under the numpy license.

Last updated 2024-04-26 UTC.