Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///   Compute the norm of all tensor elements along the given dimension.
/// </summary>
/// <param name="value"></param>
/// <param name="dimension">The dimension to process along.</param>
/// <param name="keepdim">true if the reduction dimension should be kept, false otherwise.</param>
Compute the norm of all tensor elements along the given dimension.
Compute the norm of all tensor elements along the given dimension .
public DoubleTensor Norm (double value,  int dimension, bool keepdim)
        {
            var result = new DoubleTensor();
            THDoubleTensor_norm (result.handle, this.handle, value, dimension, keepdim?1:0);
            return result;
        }
public DoubleTensor Norm ( double value , int dimension , bool keepdim ) { var result = new DoubleTensor ( ) ; THDoubleTensor_norm ( result . handle , this . handle , value , dimension , keepdim ? 1 : 0 ) ; return result ; }
Compute the norm of all tensor elements along the given dimension.
Compute the norm of all tensor elements along the given dimension .
value
double
None
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 .