-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Re apply optional ScalarType changes #22237
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
… optional scalartype parameter" This reverts commit e016a42.
aten/src/ATen/core/jit_type.h
Outdated
| if (auto opt_rhs = rhs.cast<OptionalType>()) { | ||
| return getElementType()->isSubtypeOf(opt_rhs->getElementType()); | ||
| return *getElementType() == *opt_rhs->getElementType(); | ||
| } |
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.
these are the new changes added to (hopefully) fix the tests that failed due to #22104
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.
wanchaol
left a comment
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.
looks good, the jit_type changes is landing so please rebase and you can safely delete the jit_type changes here.
aten/src/ATen/core/jit_type.h
Outdated
| if (auto opt_rhs = rhs.cast<OptionalType>()) { | ||
| return getElementType()->isSubtypeOf(opt_rhs->getElementType()); | ||
| return *getElementType() == *opt_rhs->getElementType(); | ||
| } |
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.
|
@pytorchbot rebase this please |
|
Sorry, I can't merge this because there are conflicts. To merge this yourself, run the commands below: (To learn more about this bot, see Bot commands.) |
|
for reference, this is the change that fixes this PR: |
facebook-github-bot
left a comment
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.
@nairbv is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: This is (mostly) the re-application of: pytorch/pytorch#21088 which was reverted due to an issue conflicting with changes in: pytorch/pytorch#22104 Pull Request resolved: pytorch/pytorch#22237 Differential Revision: D16012838 Pulled By: nairbv fbshipit-source-id: 35f4a73c97ab68b4e2648aca96b2176f07b5a883
This is (mostly) the re-application of:
#21088
which was reverted due to an issue conflicting with changes in:
#22104