MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / shutdown_system

Function shutdown_system

tensorflow/python/tpu/tpu.py:139–150  ·  view source on GitHub ↗

Shuts down a running a distributed TPU system. Args: job: The job (the XXX in TensorFlow device specification /job:XXX) that contains the TPU devices that will be shutdown. If job=None it is assumed there is only one job in the TensorFlow flock, and an error will be returned

(job=None)

Source from the content-addressed store, hash-verified

137
138@tf_export(v1=["tpu.shutdown_system"])
139def shutdown_system(job=None):
140 """Shuts down a running a distributed TPU system.
141
142 Args:
143 job: The job (the XXX in TensorFlow device specification /job:XXX) that
144 contains the TPU devices that will be shutdown. If job=None it is
145 assumed there is only one job in the TensorFlow flock, and an error will
146 be returned if this assumption does not hold.
147 """
148 with ops.device(_tpu_system_device_name(job)):
149 shutdown_distributed_tpu = tpu_ops.shutdown_distributed_tpu()
150 return shutdown_distributed_tpu
151
152
153@tf_export(v1=["tpu.core"])

Callers

nothing calls this directly

Calls 2

_tpu_system_device_nameFunction · 0.85
deviceMethod · 0.45

Tested by

no test coverage detected