get_trial_resources#

TuneContext.get_trial_resources() → PlacementGroupFactory[source]#

Trial resources for the corresponding trial.

Returns:

The trial’s PlacementGroupFactory, or None if called outside a Ray Train or Ray Tune function.

Return type:

PlacementGroupFactory

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