ThreadPoolOptionProtoOrBuilder
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Sous-classes indirectes connues |
Méthodes publiques
Chaîne abstraite | |
résumé com.google.protobuf.ByteString | |
entier abstrait | |
Méthodes publiques
chaîne abstraite publique 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;
résumé public 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 abstrait 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;
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/27 (UTC).
[null,null,["Dernière mise à jour le 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"]]