View source: R/gen-namespace.R
torch_minimum | R Documentation |
Minimum
torch_minimum(self, other)
self |
(Tensor) the input tensor. |
other |
(Tensor) the second input tensor |
Computes the element-wise minimum of input
and other
.
If one of the elements being compared is a NaN, then that element is returned.
torch_minimum()
is not supported for tensors with complex dtypes.
if (torch_is_installed()) {
a <- torch_tensor(c(1, 2, -1))
b <- torch_tensor(c(3, 0, 4))
torch_minimum(a, b)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.