Announcing the TensorFlow Dev Summit 2020 Learn more

TensorFlow 1 version View source on GitHub

Class ThreadingOptions

Represents options for dataset threading.

You can set the threading options of a dataset through the experimental_threading property of; the property is an instance of

options =
options.experimental_threading.private_threadpool_size = 10
dataset = dataset.with_options(options)


View source


Initialize self. See help(type(self)) for accurate signature.



If set, it overrides the maximum degree of intra-op parallelism.


If set, the dataset will use a private threadpool of the given size.



View source


Return self==value.


View source


Return self!=value.

Compat aliases