Missed TensorFlow World? Check out the recap. Learn more

tf.data.experimental.ThreadingOptions

TensorFlow 1 version View source on GitHub

Class ThreadingOptions

Represents options for dataset threading.

Aliases:

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.experimental.ThreadingOptions.

options = tf.data.Options()
options.experimental_threading.private_threadpool_size = 10
dataset = dataset.with_options(options)

__init__

View source

__init__()

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

Properties

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.

Methods

__eq__

View source

__eq__(other)

Return self==value.

__ne__

View source

__ne__(other)

Return self!=value.