Adding support for 0-d tensor for transpose (.t()) (#17535)
authorbhushan <bhushan.s.94@gmail.com>
Fri, 1 Mar 2019 16:38:06 +0000 (08:38 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 1 Mar 2019 16:45:01 +0000 (08:45 -0800)
commita6170573c898a1367517d8daf8e777abaf96f752
treee86cb83b1413488c5536bf002d866c0831e867df
parent6899e901cc471642f1307aaf6858fdb3189bfdd4
Adding support for 0-d tensor for transpose (.t()) (#17535)

Summary:
- Test updates
1. test_torch: added 0-d test case and t_() test cases
2. test_jit  : updated error message for TestAsync.test_async_script_error

- Updating documentation for torch.t()
Adding information regarding new support of 0-D and 1-D tenso

Fixes #17520
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17535

Differential Revision: D14269984

Pulled By: gchanan

fbshipit-source-id: 38b723f31484be939261c88edb33575d242eca65
aten/src/ATen/native/TensorShape.cpp
test/test_jit.py
test/test_torch.py
torch/_torch_docs.py