tf.tpu.experimental.shutdown_tpu_system
Завершает работу устройств TPU.
tf.tpu.experimental.shutdown_tpu_system(
cluster_resolver=None
)
Это очистит все кэши, даже те, которые поддерживаются последовательными вызовами tf.tpu.experimental.initialize_tpu_system, такие как кэш компиляции.
| Аргументы | |
|---|---|
cluster_resolver | tf.distribute.cluster_resolver.TPUClusterResolver, который предоставляет информацию о кластере TPU. |
| Исключения | |
|---|---|
RuntimeError | Если устройства TPU не найдены для выполнения eager или если выполнение происходит в tf.function. |
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/tpu/experimental/shutdown_tpu_system