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 FloatTensor Norm (float value,  int dimension, bool keepdim)
        {
            var result = new FloatTensor();
            THFloatTensor_norm (result.handle, this.handle, value, dimension, keepdim?1:0);
            return result;
        }
public FloatTensor Norm ( float value , int dimension , bool keepdim ) { var result = new FloatTensor ( ) ; THFloatTensor_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
float
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 .