Learn R Programming

torch (version 0.8.1)

torch_minimum: Minimum

Description

Minimum

Usage

torch_minimum(self, other)

Arguments

self

(Tensor) the input tensor.

other

(Tensor) the second input tensor

minimum(input, other, *, out=None) -> Tensor

Computes the element-wise minimum of input and other.

Examples

Run this code
if (torch_is_installed()) {

a <- torch_tensor(c(1, 2, -1))
b <- torch_tensor(c(3, 0, 4))
torch_minimum(a, b)
}

Run the code above in your browser using DataLab