-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Propagate self.env
if it was set.
#916
Conversation
🔍 Existing Issues For ReviewYour pull request is modifying functions with the following pre-existing issues: 📄 File: runhouse/resources/module.py
Did you find this useful? React with a 👍 or 👎 |
70d26a8
to
a83956c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comment on the test but core logic looks good
@@ -30,6 +30,12 @@ def np_summer(a, b): | |||
return int(np.sum([a, b])) | |||
|
|||
|
|||
def torch_import(): | |||
import torch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we use a diff library that's not used in any other test env/function yet to make sure its standalone? aws_cpu fixture now uses a torch docker image
a83956c
to
bc446aa
Compare
Breaking example, where we initialize
reqs
in the constructor, which gets set in the env, but is not propagated in.to
because the env has no name. Pretty sure we can just sendself.env
and later we have a check if it has no name to take a different path.See test for repro.