Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///   Computes the sum 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>
Computes the sum of all the elements of the tensor along the given dimension.
Computes the sum of all the elements of the tensor along the given dimension .
public IntTensor Sum (int dimension, bool keepdim)
        {
            var result = new IntTensor ();
            THIntTensor_sum (result.handle, this.handle, dimension, keepdim?1:0);
            return result;
        }
public IntTensor Sum ( int dimension , bool keepdim ) { var result = new IntTensor ( ) ; THIntTensor_sum ( result . handle , this . handle , dimension , keepdim ? 1 : 0 ) ; return result ; }
Computes the sum of all the elements of the tensor along the given dimension.
Computes the sum of all the elements of the tensor along the given dimension .
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 .