Use IndexError instead of RuntimeError in ATen CPU kernels
authorStefan Krah <skrah@bytereef.org>
Wed, 13 Feb 2019 17:24:04 +0000 (09:24 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 13 Feb 2019 18:19:28 +0000 (10:19 -0800)
commita5e7b1d03268cc2afbce4109206dcf6a57b0f4fd
tree8df41a88798f3506a5890cbbbead39d437a62b74
parent1fc05bd2857fc872c40bd0575849189e185fb359
Use IndexError instead of RuntimeError in ATen CPU kernels

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/17049

Reviewed By: ezyang

Differential Revision: D14064700

Pulled By: fmassa

fbshipit-source-id: 3575db103bba5a7d82f574cbb082beca419151ec
aten/src/ATen/native/Indexing.cpp
aten/src/ATen/native/TensorShape.cpp
aten/src/ATen/native/cpu/IndexKernel.cpp
c10/core/WrapDimMinimal.h
c10/util/Exception.h
test/test_indexing.py
test/test_torch.py
torch/csrc/Exceptions.h