Returns the device name for the TPU_SYSTEM device of `job`.
(job)
| 80 | |
| 81 | |
| 82 | def _tpu_system_device_name(job): |
| 83 | """Returns the device name for the TPU_SYSTEM device of `job`.""" |
| 84 | if job is None: |
| 85 | return "/device:TPU_SYSTEM:0" |
| 86 | else: |
| 87 | return "/job:%s/device:TPU_SYSTEM:0" % job |
| 88 | |
| 89 | |
| 90 | @tf_export(v1=["tpu.initialize_system"]) |
no outgoing calls
no test coverage detected