allow empty index for scatter_* methods (#14077)
authorAiling Zhang <ailzhang@fb.com>
Mon, 19 Nov 2018 17:45:28 +0000 (09:45 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 19 Nov 2018 17:50:21 +0000 (09:50 -0800)
commite387d945c227a0e50672b9e6c28b79620b7d26c8
treef4e44d6a9f5da5180e95625dd144ef13d16817c5
parent751b5ea94103105e9a2617a2eddafc830cd0104d
allow empty index for scatter_* methods (#14077)

Summary:
Fixes #2027
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14077

Differential Revision: D13095788

Pulled By: ailzhang

fbshipit-source-id: ad2c8bbf83d36e07940782b9206fbdcde8905fd3
aten/src/TH/generic/THTensorEvenMoreMath.cpp
aten/src/THC/generic/THCTensorScatterGather.cu
test/test_torch.py
torch/_tensor_docs.py