Return the index of device the op runs.
Compat aliases for migration
See Migration guide for more details.
tf.raw_ops.DeviceIndex( device_names, name=None )
Given a list of device names, this operation returns the index of the device this op runs. The length of the list is returned in two cases: (1) Device does not exist in the given device list. (2) It is in XLA compilation.
| || A list of |
| ||A name for the operation (optional).|
| A |
© 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.