ray.util.accelerators.tpu.get_current_pod_name#

ray.util.accelerators.tpu.get_current_pod_name() str | None[source]#

Return the name of the TPU pod that the worker is a part of.

Returns:

The name of the TPU pod. Returns None if not part of a TPU pod.

PublicAPI (alpha): This API is in alpha and may change before becoming stable.