ray.train.context.TrainContext
ray.train.context.TrainContext#
- class ray.train.context.TrainContext[source]#
Bases:
objectContext for Ray training executions.
PublicAPI (beta): This API is in beta and may change before becoming stable.
Methods
__init__()Experiment name for the corresponding trial.
Get the local rank of this worker (rank of the worker on its node).
Get the local world size of this node (i.e.
Get the rank of this node.
Log directory corresponding to the trial directory for a Tune session.
Trial id for the corresponding trial.
Trial name for the corresponding trial.
Trial resources for the corresponding trial.
Get the world rank of this worker.
Get the current world size (i.e.