ray.tune.Trainable.trial_resources#

property Trainable.trial_resources: PlacementGroupFactory | None#

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