# tf.tpu.experimental.shutdown_tpu_system

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/tpu/tpu_strategy_util.py#L184-L276) |

Shuts down the TPU devices.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.tpu.experimental.shutdown_tpu_system`](https://www.tensorflow.org/api_docs/python/tf/tpu/experimental/shutdown_tpu_system)

<br />

    tf.tpu.experimental.shutdown_tpu_system(
        cluster_resolver=None
    )

This will clear all caches, even those that are maintained through sequential
calls to tf.tpu.experimental.initialize_tpu_system, such as the compilation
cache.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `cluster_resolver` | A tf.distribute.cluster_resolver.TPUClusterResolver, which provides information about the TPU cluster. |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `RuntimeError` | If no TPU devices found for eager execution or if run in a tf.function. |

<br />