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 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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"]]