View source on GitHub |
Represents options for dataset threading.
tf.data.ThreadingOptions()
You can set the threading options of a dataset through the
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)
Methods
__eq__
__eq__(
other
)
Return self==value.
__ne__
__ne__(
other
)
Return self!=value.