get_num_ready_tpu_slices#
- ray.util.tpu.get_num_ready_tpu_slices(topology: str, accelerator_type: str, tpu_resource_per_chip: int | None = None) int[source]#
Checks the cluster state to determine how many full TPU slices of the specified topology are currently intact and available.
- Parameters:
- Returns:
The integer count of fully ready and available TPU slices.
- Return type:
PublicAPI (alpha): This API is in alpha and may change before becoming stable.