ray.rllib.algorithms.algorithm.Algorithm.trial_resources#

property Algorithm.trial_resources: Optional[ray.tune.execution.placement_groups.PlacementGroupFactory]#

Resources currently assigned to the trial of this Trainable.

This is not set if not using Tune.

from ray.tune import Trainable

trial_resources = Trainable().trial_resources