-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Validate input types for torch.nn.Linear
and torch.nn.Bilinear
#135596
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
…hence fixing issues like pytorch#135463
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/135596
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 5834f1e with merge base e004d53 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@pytorchbot label "topic: not user facing" |
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.
Please add unit tests and restrict your modifications to specific module, as this PR prevents anyone from extending the module and defining in_features as say floating point argument
Ok. I am working on these changes |
Hi @malfet, |
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.
change looks good, just need to move the test
looks like a lot of lines were changed due to your linter, can you undo your linting and use the pytorch lintrunner
|
Thanks for reviewing, I have made the changes accordingly and pushed it. |
3d80f04
to
03555a0
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.
LGTM, thank you for the fix
@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 |
The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command |
torch.nn.Linear
and torch.nn.Bilinear
@pytorchbot merge -f "Let's land those right away" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Hey @malfet , |
It was not merged, but it's part of the trunk, see e157ce3 |
Oh, ok. |
@pytorchbot revert -m "It's too restrictive, should allow other int-like types" |
❌ 🤖 pytorchbot command failed:
Try |
@pytorchbot revert -m "It's too restrictive, should allow other int-like types, such as |
@pytorchbot successfully started a revert job. Check the current status here. |
@sanskarmodi8 your PR has been successfully reverted. |
…near` (#135596)" This reverts commit e157ce3. Reverted #135596 on behalf of https://github.com/malfet due to It's too restrictive, should allow other int-like types, such as `numpy.int64` ([comment](#135596 (comment)))
This PR was reopened (likely due to being reverted), so your approval was removed. Please request another review.
I.e. things like that should work:
|
…ytorch#135596) Adding validation checks to check the input types and display better error messages for the same. Fixes pytorch#135463 Pull Request resolved: pytorch#135596 Approved by: https://github.com/malfet
…near` (pytorch#135596)" This reverts commit e157ce3. Reverted pytorch#135596 on behalf of https://github.com/malfet due to It's too restrictive, should allow other int-like types, such as `numpy.int64` ([comment](pytorch#135596 (comment)))
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Adding validation checks to check the input types and display better error messages for the same.
Fixes #135463
cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki @malfet