-
Notifications
You must be signed in to change notification settings - Fork 26.3k
added a check for zero stride #28784
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
|
In response to issue: #27598 |
|
Can we instead change is_stride_neg to is_stride_nonpos? |
|
@ssnl good point! updated. |
6fbe397 to
7137403
Compare
albanD
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.
LGTM
aten/src/ATen/native/Convolution.cpp
Outdated
| TORCH_CHECK(!params.is_padding_neg(), "negative padding is not supported"); | ||
| TORCH_CHECK(!params.is_output_padding_neg(), "negative output_padding is not supported"); | ||
| TORCH_CHECK(!params.is_stride_neg(), "negative stride is not supported"); | ||
| TORCH_CHECK(!params.is_stride_nonpos(), "non positive stride is not supported"); |
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.
nit: maybe "non-positive" instead of "non positive"?
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.
done
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.
@anjali411 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
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.
@anjali411 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
@anjali411 merged this pull request in efbaa8a. |
Summary: Pull Request resolved: pytorch/pytorch#28784 Differential Revision: D18178889 Pulled By: anjali411 fbshipit-source-id: 976810bf3f9def3a8f5ca6885b1e049b831f06f3
|
Some minor feedback on this:
|
No description provided.