Issue 14984: Remove divide by zero error in index_put_ (#14986)
authorJosef Lindman Hörnlund <jotsif@gmail.com>
Tue, 11 Dec 2018 21:36:00 +0000 (13:36 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 11 Dec 2018 21:38:12 +0000 (13:38 -0800)
commit04b65dfd1ff78cdda327aeb6ad33ce1bb444fb9d
tree12f7852f9f19477469c953946c15c28b99879671
parent109c8d22dc445247e9665e2f35d625e4374bdd1c
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 https://github.com/pytorch/pytorch/pull/13420.

https://github.com/pytorch/pytorch/issues/14984
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14986

Differential Revision: D13417861

Pulled By: colesbury

fbshipit-source-id: e6ed1af8f708b53a35803fc157ed1f043169ec89
aten/src/ATen/native/TensorIterator.cpp
test/test_indexing.py