-
Couldn't load subscription status.
- Fork 25.7k
Remove passing disable_fastpath in kwargs #112250
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/112250
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit dee8896 with merge base 28ebe5d ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot label "module: tests" |
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.
| def __init__(self, *args, **kwargs): | |
| self.disable_fastpath = kwargs.pop("disable_fastpath", None) | |
| super().__init__(*args, **kwargs) | |
| self.ref_args = self.args | |
| def __init__(self, *args, **kwargs, disable_fastpath=None): | |
| super().__init__(*args, **kwargs) | |
| self.disable_fastpath = disable_fastpath |
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.
Youc ould even assert not kwargs.
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.
Now that we are cleaning things, could you remove this ref_args, and instead use self.args from the parent class?
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.
test/test_foreach.py
Outdated
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.
Now all this is not necessary, right?
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.
It is still necessary because of "values" kwarg which I still don't understand how it's used. I want to clean that up in a separate PR, but I don't understand its usage.
247021d to
eaa74f2
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.
It'd be very nice if we could remove the values kwarg and the ref_args altogether in a follow-up PR
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Fixes an issue that came up in pytorch#112030 Pull Request resolved: pytorch#112250 Approved by: https://github.com/lezcano
Fixes an issue that came up in pytorch#112030 Pull Request resolved: pytorch#112250 Approved by: https://github.com/lezcano
Fixes an issue that came up in #112030
cc @mruberry @ZainRizvi