pytorch/docs
Xiong Wei 033b7ae3ef implement NumPy-like functionality maximum, minimum (#42579)
Summary:
Related to https://github.com/pytorch/pytorch/issues/38349

Implement NumPy-like functions `maximum` and `minimum`.
The `maximum` and `minimum` functions compute input tensors element-wise, returning a new array with the element-wise maxima/minima.

If one of the elements being compared is a NaN, then that element is returned, both `maximum` and `minimum` functions do not support complex inputs.

This PR also promotes the overloaded versions of torch.max and torch.min, by re-dispatching binary `torch.max` and `torch.min` to `torch.maximum` and `torch.minimum`.

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

Reviewed By: mrshenli

Differential Revision: D23153081

Pulled By: mruberry

fbshipit-source-id: 803506c912440326d06faa1b71964ec06775eac1
2020-08-26 16:56:12 -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 implement NumPy-like functionality maximum, minimum (#42579) 2020-08-26 16:56:12 -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