tf.raw_ops.ThreadPoolHandle
Creates a dataset that uses a custom thread pool to compute input_dataset
.
tf.raw_ops.ThreadPoolHandle(
num_threads,
display_name,
max_intra_op_parallelism=1,
container='',
shared_name='',
name=None
)
Args |
num_threads
|
An int . The number of threads in the thread pool.
|
display_name
|
A string .
A human-readable name for the threads that may be visible in some
visualizations.
threadpool.
|
max_intra_op_parallelism
|
An optional int . Defaults to 1 .
The maximum degree of parallelism to use within operations that execute on this
threadpool.
|
container
|
An optional string . Defaults to "" .
|
shared_name
|
An optional string . Defaults to "" .
|
name
|
A name for the operation (optional).
|
Returns |
A Tensor of type resource .
|
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. Some content is licensed under the numpy license.
Last updated 2024-01-23 UTC.
[null,null,["Last updated 2024-01-23 UTC."],[],[]]