Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///  Populates the tensor with random values using the provided random source generator.
/// </summary>
/// <param name="source">The random generator source</param>
Populates the tensor with random values using the provided random source generator.
Populates the tensor with random values using the provided random source generator .
public void Random (RandomGenerator source)
        {
            if (source == null)
                throw new ArgumentNullException (nameof (source));
            THFloatTensor_random (handle, source.handle);
        }
public void Random ( RandomGenerator source ) { if ( source == null ) throw new ArgumentNullException ( nameof ( source ) ) ; THFloatTensor_random ( handle , source . handle ) ; }
Populates the tensor with random values using the provided random source generator.
Populates the tensor with random values using the provided random source generator .
source
RandomGenerator
The random generator source
The random generator source