You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
handle components whose implementation lives in a different file (pytorch#1075)
Summary:
Add support for cases like:
```lang=python
# some_file.py
# ====================
def my_component(...) -> specs.AppDef: ...
# other_file.py
# ====================
from some_file import my_component
```
where the component is invoked with
`torchx run ... other_file.py:my_component`
This was currently failing with a validation error because in the step where we inspect the AST of the component, we assume that the file where the component is being looked up is the same as the file where it is implemented.
Reviewed By: kiukchung
Differential Revision: D75496839
0 commit comments