Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///   Computes the min of all the elements of the tensor along the given dimension.
/// </summary>
/// <param name="dimension">The dimension to process along.</param>
/// <param name="keepdim">true if the reduction dimension should be kept, false otherwise.</param>
/// <returns>A tuple containing the values and indices of the resulting elements.</returns>
Computes the min of all the elements of the tensor along the given dimension.
Computes the min of all the elements of the tensor along the given dimension .
public System.Tuple<ByteTensor, LongTensor> Min (int dimension, bool keepdim)
        {
            var values = new ByteTensor ();
            var indices = new LongTensor ();
            THByteTensor_min (values.handle, indices.handle, this.handle, dimension, keepdim?1:0);
            return new System.Tuple<ByteTensor, LongTensor>(values, indices);
        }
public System . Tuple < ByteTensor , LongTensor > Min ( int dimension , bool keepdim ) { var values = new ByteTensor ( ) ; var indices = new LongTensor ( ) ; THByteTensor_min ( values . handle , indices . handle , this . handle , dimension , keepdim ? 1 : 0 ) ; return new System . Tuple < ByteTensor , LongTensor > ( values , indices ) ; }
Computes the min of all the elements of the tensor along the given dimension.
Computes the min of all the elements of the tensor along the given dimension .
A tuple containing the values and indices of the resulting elements.
A tuple containing the values and indices of the resulting elements .
dimension
int
The dimension to process along.
The dimension to process along .
keepdim
bool
true if the reduction dimension should be kept, false otherwise.
true if the reduction dimension should be kept false otherwise .