Represents options for dataset threading.
tf.data.ThreadingOptions()
You can set the threading options of a dataset through the experimental_threading property of tf.data.Options; the property is an instance of tf.data.ThreadingOptions.
options = tf.data.Options() options.threading.private_threadpool_size = 10 dataset = dataset.with_options(options)
| Attributes | |
|---|---|
| max_intra_op_parallelism | If set, it overrides the maximum degree of intra-op parallelism. | 
| private_threadpool_size | If set, the dataset will use a private threadpool of the given size. The value 0 can be used to indicate that the threadpool size should be determined at runtime based on the number of available CPU cores. | 
__eq__
__eq__(
    other
)
 Return self==value.
__ne__
__ne__(
    other
)
 Return self!=value.
    © 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
    https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/data/ThreadingOptions