set_trial_resources#

ResourceChangingScheduler.set_trial_resources(trial: Trial, new_resources: Dict | PlacementGroupFactory) → bool[source]#

Returns True if new_resources were set.

Parameters:
  • trial (Trial) – The trial to update.

  • new_resources (Dict | PlacementGroupFactory) – The new resources for the trial. If empty, the trial’s resources don’t change.

Returns:

True if the trial’s resources were updated, False otherwise.

Return type:

bool