tensor.min
fn min(tensors: Span<Tensor<T>>) -> Tensor<T>;Returns the element-wise minimum values from a list of input tensors The input tensors must have either:
Exactly the same shape
The same number of dimensions and the length of each dimension is either a common length or 1.
Args
tensors(Span<Tensor<T>>,) - Array of the input tensors
Returns
A new Tensor<T> containing the element-wise minimum values
Panics
Panics if tensor array is empty
Panics if the shapes are not equal or broadcastable
Examples
Case 1: Process tensors with same shape
Case 2: Process tensors with different shapes
Last updated