ray.tune.schedulers.ResourceChangingScheduler.reallocate_trial_resources_if_needed# ResourceChangingScheduler.reallocate_trial_resources_if_needed(tune_controller: TuneController, trial: Trial, result: Dict) → dict | PlacementGroupFactory | None[源代码]# 调用用户定义的 resources_allocation_function。如果返回的资源不是 None 且与当前存在的资源不同,则返回它们。否则,返回 None。