Add docs and test guaranteeing indices from torch.nonzero ordered C-style (#19539)
authorjhultman <jhultman0@gmail.com>
Tue, 23 Apr 2019 16:23:06 +0000 (09:23 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 23 Apr 2019 16:29:21 +0000 (09:29 -0700)
commitf767c9ac767bf8b2d87119183dea4149bdbacdf1
tree56a04c735b94f3006e8ab25abd03ba0fba93d40f
parent3b4d4ef503d6748186e3ba8cbaf26610daa93373
Add docs and test guaranteeing indices from torch.nonzero ordered C-style (#19539)

Summary:
See #17556.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19539

Differential Revision: D15030151

Pulled By: ezyang

fbshipit-source-id: d46ee56a66d89b0113f86e3f8693dc1680d0adb9
test/test_torch.py
torch/_torch_docs.py