tf.data.experimental.copy_to_device

A transformation that copies dataset elements to the given target_device.

target_deviceThe name of a device to which elements will be copied.
source_deviceThe original device on which input_dataset will be placed.

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