tf.raw_ops.ThreadPoolHandle  |  TensorFlow v2.16.1 (original) (raw)

tf.raw_ops.ThreadPoolHandle

Stay organized with collections Save and categorize content based on your preferences.

Creates a dataset that uses a custom thread pool to compute input_dataset.

View aliases

Compat aliases for migration

SeeMigration guide for more details.

tf.compat.v1.raw_ops.ThreadPoolHandle

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-04-26 UTC.