from_placement_group_factory#

classmethod ScalingConfig.from_placement_group_factory(pgf: PlacementGroupFactory) → ScalingConfig[source]#

Create a ScalingConfig from a Tune’s PlacementGroupFactory

Note that this is only needed for ResourceChangingScheduler, which modifies a trial’s PlacementGroupFactory but doesn’t propagate the changes to ScalingConfig. TrainTrainable needs to reconstruct a ScalingConfig from on the trial’s PlacementGroupFactory.

Parameters:

pgf (PlacementGroupFactory) – The placement group factory to convert.

Returns:

The ScalingConfig that the placement group factory describes.

Return type:

ScalingConfig