world_size#

RayLightningEnvironment.world_size() → int[source]#

Return the number of workers in the training run.

Returns:

The world size from the Ray Train context.

Return type:

int