torch.minimum
- torch.minimum(input, other, *, out=None) → Tensor
Computes the element-wise minimum of
inputand.
Computes the element-wise minimum of input and .
Example:
>>> a = torch.tensor((1, 2, -1))
>>> b = torch.tensor((3, 0, 4))
>>> torch.minimum(a, b)
tensor([1, 0, -1])