Skip to content

Commit

Permalink
reverted some changes to lose dependency on pytorch#819
Browse files Browse the repository at this point in the history
  • Loading branch information
ccharest93 committed Apr 10, 2024
1 parent 0a6c777 commit 62c6eef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion torchx/runner/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def dryrun(
)
else:
logger.info(
f"Reusing image based on `{old_img}` for role[0]={role.name}."
f"Reusing original image `{old_img}` for role[0]={role.name}."
" Either a patch was built or no changes to workspace was detected."
)

Expand Down
4 changes: 2 additions & 2 deletions torchx/workspace/docker_workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ def build_workspace_and_update_role(
except StopIteration:
break

if len(old_imgs) == 0 or image["ID"] not in old_imgs:
role.image = image["ID"]
if len(old_imgs) == 0 or role.image not in old_imgs:
role.image = image.id
finally:
context.close()

Expand Down

0 comments on commit 62c6eef

Please sign in to comment.