torch.aminmax
torch.aminmax(input, *, dim=None, keepdim=False, out=None) -> (Tensor min, Tensor max)
Computes the minimum and maximum values of the "input" tensor.
Parameters:
      input (Tensor) -- The input tensor
Keyword Arguments:
      * dim (Optional[int]) -- The dimension along which
        to compute the values. If None, computes the values over the
        entire "input" tensor. Default is None.
  * **keepdim** (*bool*) -- If *True*, the reduced dimensions will
    be kept in the output tensor as dimensions with size 1 for
    broadcasting, otherwise they will be removed, as if calling
    ("torch.squeeze()"). Default is *False*.

  * **out** (*Optional**[**Tuple**[**Tensor**, **Tensor**]**]*) --
    Optional tensors on which to write the result. Must have the
    same shape and dtype as the expected output. Default is
    *None*.

Returns:
      A named tuple (min, max) containing the minimum and maximum