ray.train.context.TrainContext#
- class ray.train.context.TrainContext[source]#
Context for Ray training executions.
Methods
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. number of workers on this node).
User metadata dict passed to the Trainer constructor.
Get the rank of this node.
Returns the
StorageContext
storage context which gives advanced access to the filesystem and paths configured throughRunConfig
.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. total number of workers) for this run.