Port empty_strided to ATen. (#15948)
authorGregory Chanan <gchanan@fb.com>
Fri, 11 Jan 2019 15:55:17 +0000 (07:55 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 11 Jan 2019 15:58:05 +0000 (07:58 -0800)
commitb7cdeb3fc3cdc71813c5f2b639fbf9bee5c6b843
treec2d999686b94153babde74ef64f7203e249c3a56
parent14dcdc4c35d10fce70bf8b98dd57f9318dfb8dd7
Port empty_strided to ATen. (#15948)

Summary:
Turns out this has basically been implemented already in Resize.h / Resize.cuh.
Also added some testing, basically just to check that empty_strided behaves equivalently to as_strided.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15948

Differential Revision: D13631098

Pulled By: gchanan

fbshipit-source-id: eb0e04eead45e4cff393ebde340f9d265779e185
aten/src/ATen/Declarations.cwrap
aten/src/ATen/native/TensorFactories.cpp
aten/src/ATen/native/cuda/TensorFactories.cu
aten/src/ATen/native/native_functions.yaml
test/test_torch.py