ThreadPoolOptionProtoOrBuilder
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
パブリックメソッド
抽象文字列 | getグローバル名()
The global name of the threadpool. |
抽象的な com.google.protobuf.ByteString | |
抽象整数 | |
パブリックメソッド
public abstract String getGlobalName ()
The global name of the threadpool.
If empty, then the threadpool is made and used according to the scope it's
in - e.g., for a session threadpool, it is used by that session only.
If non-empty, then:
- a global threadpool associated with this name is looked
up or created. This allows, for example, sharing one threadpool across
many sessions (e.g., like the default behavior, if
inter_op_parallelism_threads is not configured), but still partitioning
into a large and small pool.
- if the threadpool for this global_name already exists, then it is an
error if the existing pool was created using a different num_threads
value as is specified on this call.
- threadpools created this way are never garbage collected.
string global_name = 2;
パブリック抽象 com.google.protobuf.ByteString getGlobalNameBytes ()
The global name of the threadpool.
If empty, then the threadpool is made and used according to the scope it's
in - e.g., for a session threadpool, it is used by that session only.
If non-empty, then:
- a global threadpool associated with this name is looked
up or created. This allows, for example, sharing one threadpool across
many sessions (e.g., like the default behavior, if
inter_op_parallelism_threads is not configured), but still partitioning
into a large and small pool.
- if the threadpool for this global_name already exists, then it is an
error if the existing pool was created using a different num_threads
value as is specified on this call.
- threadpools created this way are never garbage collected.
string global_name = 2;
public abstract int getNumThreads ()
The number of threads in the pool.
0 means the system picks a value based on where this option proto is used
(see the declaration of the specific field for more info).
int32 num_threads = 1;
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-27 UTC。
[null,null,["最終更新日 2025-07-27 UTC。"],[],[],null,["# ThreadPoolOptionProtoOrBuilder\n\npublic interface **ThreadPoolOptionProtoOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [ThreadPoolOptionProto](/jvm/api_docs/java/org/tensorflow/proto/framework/ThreadPoolOptionProto), [ThreadPoolOptionProto.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/ThreadPoolOptionProto.Builder) |------------------------------------------------------------------------------------------------------------------|--------------------------------------------------| | [ThreadPoolOptionProto](/jvm/api_docs/java/org/tensorflow/proto/framework/ThreadPoolOptionProto) | Protobuf type `tensorflow.ThreadPoolOptionProto` | | [ThreadPoolOptionProto.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/ThreadPoolOptionProto.Builder) | Protobuf type `tensorflow.ThreadPoolOptionProto` | |||\n\n### Public Methods\n\n|-----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract String | [getGlobalName](/jvm/api_docs/java/org/tensorflow/proto/framework/ThreadPoolOptionProtoOrBuilder#getGlobalName())() ``` The global name of the threadpool. ``` |\n| abstract com.google.protobuf.ByteString | [getGlobalNameBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/ThreadPoolOptionProtoOrBuilder#getGlobalNameBytes())() ``` The global name of the threadpool. ``` |\n| abstract int | [getNumThreads](/jvm/api_docs/java/org/tensorflow/proto/framework/ThreadPoolOptionProtoOrBuilder#getNumThreads())() ``` The number of threads in the pool. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract String\n**getGlobalName**\n()\n\n\u003cbr /\u003e\n\n```\n The global name of the threadpool.\n If empty, then the threadpool is made and used according to the scope it's\n in - e.g., for a session threadpool, it is used by that session only.\n If non-empty, then:\n - a global threadpool associated with this name is looked\n up or created. This allows, for example, sharing one threadpool across\n many sessions (e.g., like the default behavior, if\n inter_op_parallelism_threads is not configured), but still partitioning\n into a large and small pool.\n - if the threadpool for this global_name already exists, then it is an\n error if the existing pool was created using a different num_threads\n value as is specified on this call.\n - threadpools created this way are never garbage collected.\n \n```\n`string global_name = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getGlobalNameBytes**\n()\n\n\u003cbr /\u003e\n\n```\n The global name of the threadpool.\n If empty, then the threadpool is made and used according to the scope it's\n in - e.g., for a session threadpool, it is used by that session only.\n If non-empty, then:\n - a global threadpool associated with this name is looked\n up or created. This allows, for example, sharing one threadpool across\n many sessions (e.g., like the default behavior, if\n inter_op_parallelism_threads is not configured), but still partitioning\n into a large and small pool.\n - if the threadpool for this global_name already exists, then it is an\n error if the existing pool was created using a different num_threads\n value as is specified on this call.\n - threadpools created this way are never garbage collected.\n \n```\n`string global_name = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract int\n**getNumThreads**\n()\n\n\u003cbr /\u003e\n\n```\n The number of threads in the pool.\n 0 means the system picks a value based on where this option proto is used\n (see the declaration of the specific field for more info).\n \n```\n`int32 num_threads = 1;`\n\n\u003cbr /\u003e"]]