powered by
Amin
torch_amin(self, dim = list(), keepdim = FALSE)
(Tensor) the input tensor.
(int or tuple of ints) the dimension or dimensions to reduce.
(bool) whether the output tensor has dim retained or not.
dim
Returns the minimum value of each slice of the input tensor in the given dimension(s) dim.
input
if (torch_is_installed()) { a <- torch_randn(c(4, 4)) a torch_amin(a, 1) }
Run the code above in your browser using DataLab