-
Notifications
You must be signed in to change notification settings - Fork 24.5k
remove some spurious warnings fixing #72352
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
CI Flow Status⚛️ CI FlowRuleset - Version:
|
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit e4aa5f0 (more details on the Dr. CI page):
🕵️ 15 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
9ad2d3c
to
157aed2
Compare
@albanD has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
const auto& grad_strides = grad.strides(); | ||
const auto& variable_strides = variable.strides(); | ||
for (const auto idx : c10::irange(grad_sizes.size())) { | ||
if (grad_sizes[idx] != 1) { |
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.
Should we also skip the check if size=0?
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.
Size 0 means empty Tensor. Which is a lot trickier to think about. And a lot more rare when Parameters. So I though we could ignore this case for now.
157aed2
to
e4aa5f0
Compare
@albanD has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Hey @albanD. |
This pull request has been reverted by 5654b68. To re-land this change, follow these steps. |
This pull request has been reverted by 5654b68. To re-land this change, please open another pull request, assignthe same reviewers, fix the CI failures that caused the revert and make sure that the failing CI runs on the PR by applying the proper ciflow label (e.g., ciflow/trunk). |
Summary: Fixes pytorch/pytorch#70389 Pull Request resolved: pytorch/pytorch#72352 Reviewed By: jbschlosser Differential Revision: D34011981 Pulled By: albanD fbshipit-source-id: 55bedc8a40929bc5b49cb6d7d7d51a3750f2ff27 (cherry picked from commit a6657a9071a48e8f3a8b35a75a06c669ab82d56b)
Summary: Fixes pytorch/pytorch#70389 Pull Request resolved: pytorch/pytorch#72352 Reviewed By: jbschlosser Differential Revision: D34011981 Pulled By: albanD fbshipit-source-id: 55bedc8a40929bc5b49cb6d7d7d51a3750f2ff27 (cherry picked from commit a6657a9071a48e8f3a8b35a75a06c669ab82d56b)
Fixes #70389