pytorch/docs
Mike Ruberry 3aeb70db0b Documents sub properly, adds subtract alias (#43850)
Summary:
`torch.sub` was undocumented, so this PR adds its documentation, analogous to `torch.add`'s documentation, and adds the alias `torch.subtract` for `torch.sub`, too. This alias comes from NumPy (see https://numpy.org/doc/stable/reference/generated/numpy.subtract.html?highlight=subtract#numpy.subtract)

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

Reviewed By: ngimel

Differential Revision: D23416908

Pulled By: mruberry

fbshipit-source-id: 6c4d2ebaf6ecae91f3a6efe484ce6c4dad96f016
2020-08-30 15:44:56 -07:00
..
caffe2 Grammar patch 1 (.md) (#41599) 2020-07-20 10:19:08 -07:00
cpp Add reference documentation for torch/library.h (#41470) 2020-07-17 10:05:16 -07:00
source Documents sub properly, adds subtract alias (#43850) 2020-08-30 15:44:56 -07:00
.gitignore
libtorch.rst
make.bat Sphinx parallel build (#38785) 2020-05-21 13:03:55 -07:00
Makefile DOC: fail to build if there are warnings (#41335) 2020-07-28 22:33:44 -07:00
requirements.txt DOC: fix two build warnings (#41334) 2020-07-25 23:38:33 -07:00