Warning: This API is deprecated and will be removed in a future
version of TensorFlow after
the replacement is stable.
TensorFlow
Stay organized with collections
Save and categorize content based on your preferences.
Static utility methods describing the TensorFlow runtime.
Public Methods
static
byte[]
|
loadLibrary(String filename)
Load the dynamic library in filename and register the operations and kernels present in that
library.
|
static
byte[]
|
registeredOpList()
All the TensorFlow operations available in this address space.
|
static
String
|
version()
Returns the version of the underlying TensorFlow runtime.
|
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
byte[]
loadLibrary
(String filename)
Load the dynamic library in filename and register the operations and kernels present in that
library.
Parameters
filename |
Path of the dynamic library containing operations and kernels to load. |
Returns
- Serialized bytes of the OpList
protocol buffer message defining the operations defined in the library.
Throws
UnsatisfiedLinkError |
if filename cannot be loaded.
|
public
static
byte[]
registeredOpList
()
All the TensorFlow operations available in this address space.
Returns
- A serialized representation of an OpList
protocol buffer, which lists all the available TensorFlow operations.
public
static
String
version
()
Returns the version of the underlying TensorFlow runtime.
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 2022-02-12 UTC.
[null,null,["Last updated 2022-02-12 UTC."],[],[],null,["# TensorFlow\n\npublic final class **TensorFlow** \nStatic utility methods describing the TensorFlow runtime. \n\n### Public Methods\n\n|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static byte\\[\\] | [loadLibrary](/api_docs/java/org/tensorflow/TensorFlow#loadLibrary(java.lang.String))(String filename) Load the dynamic library in filename and register the operations and kernels present in that library. |\n| static byte\\[\\] | [registeredOpList](/api_docs/java/org/tensorflow/TensorFlow#registeredOpList())() All the TensorFlow operations available in this address space. |\n| static String | [version](/api_docs/java/org/tensorflow/TensorFlow#version())() Returns the version of the underlying TensorFlow runtime. |\n\n### Inherited Methods\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| boolean | equals(Object arg0) |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public static byte\\[\\]\n**loadLibrary**\n(String filename)\n\nLoad the dynamic library in filename and register the operations and kernels present in that\nlibrary. \n\n##### Parameters\n\n| filename | Path of the dynamic library containing operations and kernels to load. |\n|----------|------------------------------------------------------------------------|\n\n##### Returns\n\n- Serialized bytes of the [OpList](https://www.tensorflow.org/code/tensorflow/core/framework/op_def.proto) protocol buffer message defining the operations defined in the library. \n\n##### Throws\n\n| UnsatisfiedLinkError | if filename cannot be loaded. |\n|----------------------|-------------------------------|\n\n#### public static byte\\[\\]\n**registeredOpList**\n()\n\nAll the TensorFlow operations available in this address space. \n\n##### Returns\n\n- A serialized representation of an [OpList](https://www.tensorflow.org/code/tensorflow/core/framework/op_def.proto) protocol buffer, which lists all the available TensorFlow operations. \n\n#### public static String\n**version**\n()\n\nReturns the version of the underlying TensorFlow runtime."]]