tf.data.experimental.ServiceOptions

Represents options for tf.data service.

You can set the service options of a dataset through the experimental_service property of tf.data.Options; the property is an instance of tf.data.experimental.ServiceOptions.

options = tf.data.Options()
options.experimental_service.pinned = True
dataset = dataset.with_options(options)

pinned If true, the tf.data service client allocates data to pinned memory, which facilitates more efficient copying from host memory to GPU memory downstream. For gRPC, compression must be disabled for this to take effect. For alternative data transfer protocols, this may or may not take effect, depending on the implementation.

Methods

__eq__

View source

Return self==value.

__ne__

View source

Return self!=value.