reallocate_trial_resources_if_needed#
- ResourceChangingScheduler.reallocate_trial_resources_if_needed(tune_controller: TuneController, trial: Trial, result: Dict) dict | PlacementGroupFactory | None[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.
- Parameters:
- Returns:
The new resources for the trial, or
Noneif they don’t change.- Return type:
dict | PlacementGroupFactory | None