W3cubDocs

/TensorFlow 2.3

tf.data.experimental.copy_to_device

View source on GitHub

A transformation that copies dataset elements to the given target_device.

Args
target_device The name of a device to which elements will be copied.
source_device The original device on which input_dataset will be placed.
Returns
A Dataset transformation function, which can be passed to tf.data.Dataset.apply.

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/python/tf/data/experimental/copy_to_device