pytorch/docs
Akifumi Imanishi 9da0f2e95e Support __pos__ and positive (#55891)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/55604.

This PR implements `torch.Tensor.__pos__` and `torch.positive` for the compatibility with NumPy’s interface. (cc: mruberry, rgommers, emcastillo and kmaehashi)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/55891

Reviewed By: H-Huang

Differential Revision: D28025928

Pulled By: mruberry

fbshipit-source-id: e43e329a802f31bf8805f6efab5c2c7ef34c88b9
2021-04-27 13:23:59 -07:00
..
caffe2 Lint trailing newlines (#54737) 2021-03-30 13:09:52 -07:00
cpp docs: Pin docutils to 0.16 (#55309) 2021-04-05 11:31:09 -07:00
source Support __pos__ and positive (#55891) 2021-04-27 13:23:59 -07:00
.gitignore
libtorch.rst
make.bat
Makefile
README.md
requirements.txt docs: Pin docutils to 0.16 (#55309) 2021-04-05 11:31:09 -07:00

Please see the Writing documentation section of CONTRIBUTING.md for details on both writing and building the docs.