allow numpy-like boolean-list indexing in pytorch (#14932)
authorrory <ruochunz@student.unimelb.edu.au>
Thu, 20 Dec 2018 23:18:39 +0000 (15:18 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 20 Dec 2018 23:33:06 +0000 (15:33 -0800)
commitd6cbcb43c59cee08df6555a7d3bc3d6212f93741
tree7cf65d72bba23c0cde8c26280bda2e3657914f64
parentf56217af3bf7e94b082fb3eb4ca4869b5388b09a
allow numpy-like boolean-list indexing in pytorch (#14932)

Summary:
Suggested fix to issue #6773, the fix allows numpy-like boolean-list indexing in pytorch
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14932

Differential Revision: D13398795

Pulled By: ezyang

fbshipit-source-id: 67f8daf9829db2550ff76d2bde673be6dd2708cd
test/test_indexing.py
torch/csrc/autograd/python_variable_indexing.cpp
torch/csrc/utils/tensor_new.cpp
torch/csrc/utils/tensor_new.h