Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///   Compute the variance of all tensor elements along the given dimension.
/// </summary>
/// <param name="dimension">The dimension to process along.</param>
/// <param name="biased"></param>
/// <param name="keepdim">true if the reduction dimension should be kept, false otherwise.</param>
Compute the variance of all tensor elements along the given dimension.
Compute the variance of all tensor elements along the given dimension .
public FloatTensor Var (int dimension, bool biased, bool keepdim)
        {
            var result = new FloatTensor();
            THFloatTensor_var (result.handle, this.handle, dimension, biased?1:0, keepdim?1:0);
            return result;
        }
public FloatTensor Var ( int dimension , bool biased , bool keepdim ) { var result = new FloatTensor ( ) ; THFloatTensor_var ( result . handle , this . handle , dimension , biased ? 1 : 0 , keepdim ? 1 : 0 ) ; return result ; }
Compute the variance of all tensor elements along the given dimension.
Compute the variance of all tensor elements along the given dimension .
dimension
int
The dimension to process along.
The dimension to process along .
biased
bool
None
keepdim
bool
true if the reduction dimension should be kept, false otherwise.
true if the reduction dimension should be kept false otherwise .