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 | Если для eager-выполнения не найдены устройства TPU или если функция запущена в 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/api_docs/python/tf/tpu/experimental/shutdown_tpu_system