Fix resize for edge case tensors (#14874)
authorTyler Moncur <mtmoncur@gmail.com>
Thu, 13 Dec 2018 03:51:34 +0000 (19:51 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 13 Dec 2018 03:56:23 +0000 (19:56 -0800)
commit895cb8fcea85d1879ab04599487a678f3b8b61d7
treec58f8e88c0eb218a34da3369803c933cfeea2196
parent78a77667ddc6fcdb6ee9ec0cf52d5c61c7052e9e
Fix resize for edge case tensors (#14874)

Summary:
Certain tensor shapes failed when being resized. This pull request addresses the bug found in #13404.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14874

Differential Revision: D13429788

Pulled By: soumith

fbshipit-source-id: 8aa6451dbadce46d6d1c47a01cb26e6559bcfc8c
aten/src/ATen/native/Resize.h
aten/src/ATen/native/cuda/Resize.cuh
test/test_torch.py