ThreadPoolOptionProtoOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Public Methods
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
int
|
|
Public Methods
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;
public
abstract
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;
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 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 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"]]