ThreadPoolOptionProtoOrBuilder
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
सार्वजनिक तरीके
सार स्ट्रिंग | |
सार com.google.protobuf.ByteString | |
सार इंट | |
सार्वजनिक तरीके
सार्वजनिक सार स्ट्रिंग 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;
सार्वजनिक सार 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;
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]