Skip to content

Commit 56e2d18

Browse files
lgarg26facebook-github-bot
authored andcommitted
Allow setting app and cfg for all apps
Summary: Allow setting app and cfg as usual for all dryruns Reviewed By: bobyangyf Differential Revision: D71557463
1 parent 11df990 commit 56e2d18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchx/schedulers/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ def submit_dryrun(self, app: A, cfg: T) -> D:
185185
if isinstance(app, AppDef):
186186
for role in app.roles:
187187
dryrun_info = role.pre_proc(self.backend, dryrun_info)
188-
dryrun_info._app = app
189-
dryrun_info._cfg = resolved_cfg
188+
dryrun_info._app = app
189+
dryrun_info._cfg = resolved_cfg
190190
return dryrun_info
191191

192192
@abc.abstractmethod

0 commit comments

Comments
 (0)