Commit 27e9ca5
[MKLDNN] Check that strides are positive (pytorch#153092)
[MKLDNN] Check that strides are positive (pytorch#151848)
For pooling ops. Prevents division-by-zero when argument is wrong
Fixes pytorch#149274
Pull Request resolved: pytorch#151848
Approved by: https://github.com/atalman
(cherry picked from commit 6f32712)
Co-authored-by: Nikita Shulga <[email protected]>1 parent dab8130 commit 27e9ca5
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1623 | 1623 | | |
1624 | 1624 | | |
1625 | 1625 | | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
1626 | 1632 | | |
1627 | 1633 | | |
1628 | 1634 | | |
| |||
0 commit comments