Skip to content

Commit

Permalink
[torchx][runner] Simplify Runner.close. (#830)
Browse files Browse the repository at this point in the history
there is no need to use item tuples since `name` is not used
  • Loading branch information
ttsugriy authored Mar 1, 2024
1 parent 45115a0 commit e5cb668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchx/runner/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def close(self) -> None:
It is ok to call this method multiple times on the same runner object.
"""

for name, scheduler in self._scheduler_instances.items():
for scheduler in self._scheduler_instances.values():
scheduler.close()

def run_component(
Expand Down

0 comments on commit e5cb668

Please sign in to comment.