Commit f6658bc
Issue 14984: Remove divide by zero error in index_put_ (#14986)
Summary:
No check for zero index tensor was done in the accumulate=True (serial) case in the new TensorIterator code since #13420.
#14984
Pull Request resolved: #14986
Differential Revision: D13417861
Pulled By: colesbury
fbshipit-source-id: e6ed1af8f708b53a35803fc157ed1f043169ec891 parent bd51538 commit f6658bc
File tree
2 files changed
+13
-2
lines changed- aten/src/ATen/native
- test
2 files changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
388 | 391 | | |
389 | 392 | | |
390 | 393 | | |
| |||
677 | 680 | | |
678 | 681 | | |
679 | 682 | | |
680 | | - | |
681 | | - | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
682 | 687 | | |
683 | 688 | | |
684 | 689 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
| |||
0 commit comments