Returns the device name for a core in a replicated TPU computation.
tf.compat.v1.tpu.core( num )
Args | |
---|---|
num | the virtual core number within each replica to which operators should be assigned. |
Returns | |
---|---|
A device name, suitable for passing to tf.device() . |
© 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.4/api_docs/python/tf/compat/v1/tpu/core