Skip to content

Commit

Permalink
fix dump and load behavior to load same set of schedulers
Browse files Browse the repository at this point in the history
Differential Revision: D67341003

Pull Request resolved: #993
  • Loading branch information
lgarg26 authored Dec 17, 2024
1 parent 90884d7 commit ff22758
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion torchx/runner/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,16 @@ def dump(
if schedulers:
scheds = schedulers
else:
scheds = get_scheduler_factories().keys()
scheduler_factories = {
**get_scheduler_factories(),
**(
get_scheduler_factories(
group="torchx.schedulers.orchestrator", skip_defaults=True
)
or {}
),
}
scheds = scheduler_factories.keys()

config = _configparser()
for sched_name in scheds:
Expand Down

0 comments on commit ff22758

Please sign in to comment.