Skip to content

Commit 126fc80

Browse files
authored
Fix for issue with APF packaging with multiple roles
Differential Revision: D69279705 Pull Request resolved: #1006
1 parent 0467f33 commit 126fc80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchx/specs/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def __getattribute__(self, attrname: str) -> Any:
398398
else:
399399
result = ov[attrname]()
400400
setattr(self, attrname, result)
401-
del ov[attrname]
401+
ov[attrname] = lambda: result
402402
return super().__getattribute__(attrname)
403403

404404
def pre_proc(

0 commit comments

Comments
 (0)