TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

View source on GitHub

Class ThreadingOptions

Represents options for dataset threading.


  • Class
  • Class

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.