pytorch
cb4e6d02 - Updates numpy to tensor negative stride error message (#33254)

Commit
6 years ago
Updates numpy to tensor negative stride error message (#33254) Summary: See https://discuss.pytorch.org/t/bugs-about-torch-from-numpy-array/43312. This update incorporates albanD 's suggestion into the error message, saving future users from having to ask or look on the forums if they encounter this issue and don't mind making their arrays contiguous. Pull Request resolved: https://github.com/pytorch/pytorch/pull/33254 Differential Revision: D19885808 Pulled By: mruberry fbshipit-source-id: 8f0fd994cf8c088bf3c3940ab4dfb3ddbc5b3ede
Author
Mike Ruberry
Parents
Loading