ray.tune.schedulers.ResourceChangingScheduler.reallocate_trial_resources_if_needed#

ResourceChangingScheduler.reallocate_trial_resources_if_needed(tune_controller: TuneController, trial: ray.tune.experiment.trial.Trial, result: Dict) Optional[Union[dict, ray.tune.execution.placement_groups.PlacementGroupFactory]][source]#

Calls user defined resources_allocation_function. If the returned resources are not none and not the same as currently present, returns them. Otherwise, returns None.