tf.data.experimental.copy_to_device

View source on GitHub

A transformation that copies dataset elements to the given target_device.

tf.data.experimental.copy_to_device(
    target_device, source_device='/cpu:0'
)

Args:

Returns:

A Dataset transformation function, which can be passed to tf.data.Dataset.apply.