tf.tpu.experimental.initialize_tpu_system

Initialize the TPU devices.

Used in the notebooks

Used in the guide

cluster_resolver A tf.distribute.cluster_resolver.TPUClusterResolver, which provides information about the TPU cluster.

The tf.tpu.Topology object for the topology of the TPU cluster.

RuntimeError If running inside a tf.function.
NotFoundError If no TPU devices found in eager mode.