警告:この API は非推奨であり、置き換えが安定した後の TensorFlow の将来のバージョンでは削除される予定です。
TensorFlow
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
TensorFlow ランタイムを記述する静的ユーティリティ メソッド。
パブリックメソッド
静的バイト[] | loadLibrary (文字列ファイル名) filename でダイナミック ライブラリをロードし、そのライブラリに存在するオペレーションとカーネルを登録します。 |
静的バイト[] | |
静的文字列 | バージョン() 基礎となる TensorFlow ランタイムのバージョンを返します。 |
継承されたメソッド
クラスjava.lang.Objectからブール値 | 等しい(オブジェクト arg0) |
最終クラス<?> | getクラス() |
整数 | ハッシュコード() |
最後の空白 | 通知する() |
最後の空白 | すべて通知() |
弦 | toString () |
最後の空白 | wait (long arg0, int arg1) |
最後の空白 | 待機(長い引数0) |
最後の空白 | 待って() |
パブリックメソッド
public static byte[] loadLibrary (文字列ファイル名)
filename でダイナミック ライブラリをロードし、そのライブラリに存在するオペレーションとカーネルを登録します。
パラメーター
ファイル名 | ロードするオペレーションとカーネルを含むダイナミック ライブラリのパス。 |
---|
戻り値
- ライブラリで定義された操作を定義するOpListプロトコル バッファ メッセージのシリアル化されたバイト。
投げる
UnsatisfiedLinkError | ファイル名をロードできない場合。 |
---|
public static byte[] registeredOpList ()
このアドレス空間で利用可能なすべての TensorFlow 操作。
戻り値
- OpListプロトコル バッファのシリアル化された表現。利用可能なすべての TensorFlow オペレーションをリストします。
public static Stringバージョン()
基礎となる TensorFlow ランタイムのバージョンを返します。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 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."]]