pytorch/docs/source
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
..
_static
_templates
_templates-stable
community Add MSFT Owners to the Windows Maintainership (#42280) 2020-07-30 08:22:13 -07:00
notes Correct the windows docs (#43479) 2020-08-25 13:41:24 -07:00
rpc
scripts Optimize SiLU (Swish) op in PyTorch (#42976) 2020-08-16 13:21:57 -07:00
__config__.rst
amp.rst
autograd.rst
bottleneck.rst
checkpoint.rst
complex_numbers.rst Doc note for complex (#41252) 2020-07-16 08:53:27 -07:00
conf.py
cpp_extension.rst
cpp_index.rst
cuda.rst
cudnn_persistent_rnn.rst
cudnn_rnn_determinism.rst [doc] Add LSTM non-deterministic workaround (#40893) 2020-07-21 16:20:02 -07:00
data.rst add prefetch_factor for multiprocessing prefetching process (#41130) 2020-07-24 08:38:13 -07:00
distributed.rst
distributions.rst
dlpack.rst
docutils.conf
fft.rst Adds fft namespace (#41911) 2020-08-06 00:20:50 -07:00
futures.rst
hub.rst
index.rst Adds torch.linalg namespace (#42664) 2020-08-07 10:18:30 -07:00
jit.rst Grammatical corrections (#43473) 2020-08-25 12:09:14 -07:00
jit_builtin_functions.rst
jit_language_reference.rst
jit_python_reference.rst
jit_unsupported.rst
linalg.rst Adds linalg.det alias, fixes outer alias, updates alias testing (#42802) 2020-08-11 21:48:31 -07:00
math-quantizer-equation.png
mobile_optimizer.rst optimize_for_mobile: bring packed params to root module (#42740) 2020-08-08 15:53:20 -07:00
model_zoo.rst
multiprocessing.rst
name_inference.rst
named_tensor.rst Easier english updated tech docs (#42016) 2020-07-24 14:36:17 -07:00
nn.functional.rst
nn.init.rst
nn.rst Add Unflatten Module (#41564) 2020-07-21 07:43:02 -07:00
onnx.rst
optim.rst DOC: fail to build if there are warnings (#41335) 2020-07-28 22:33:44 -07:00
quantization-support.rst DOC: split quantization.rst into smaller pieces (#41321) 2020-07-25 23:59:40 -07:00
quantization.rst DOC: split quantization.rst into smaller pieces (#41321) 2020-07-25 23:59:40 -07:00
random.rst
rpc.rst Minor RPC doc fixes (#43337) 2020-08-20 14:17:07 -07:00
sparse.rst
storage.rst
tensor_attributes.rst
tensor_view.rst Adds movedim method, fixes movedim docs, fixes view doc links (#43122) 2020-08-17 14:24:52 -07:00
tensorboard.rst
tensors.rst implement NumPy-like functionality maximum, minimum (#42579) 2020-08-26 16:56:12 -07:00
torch.nn.intrinsic.qat.rst DOC: split quantization.rst into smaller pieces (#41321) 2020-07-25 23:59:40 -07:00
torch.nn.intrinsic.quantized.rst DOC: split quantization.rst into smaller pieces (#41321) 2020-07-25 23:59:40 -07:00
torch.nn.intrinsic.rst DOC: split quantization.rst into smaller pieces (#41321) 2020-07-25 23:59:40 -07:00
torch.nn.qat.rst DOC: split quantization.rst into smaller pieces (#41321) 2020-07-25 23:59:40 -07:00
torch.nn.quantized.dynamic.rst DOC: split quantization.rst into smaller pieces (#41321) 2020-07-25 23:59:40 -07:00
torch.nn.quantized.rst DOC: split quantization.rst into smaller pieces (#41321) 2020-07-25 23:59:40 -07:00
torch.quantization.rst DOC: split quantization.rst into smaller pieces (#41321) 2020-07-25 23:59:40 -07:00
torch.rst implement NumPy-like functionality maximum, minimum (#42579) 2020-08-26 16:56:12 -07:00
type_info.rst DOC: split quantization.rst into smaller pieces (#41321) 2020-07-25 23:59:40 -07:00