Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///   Uses the given value to overwrite the original tensor by selecting the indices in the order
///   given in index. The shape of tensor must exactly match the elements indexed or an error will be thrown.
/// </summary>
/// <param name="dim">Dimension to select for the fill</param>
/// <param name="index">Entries to copy</param>
/// <param name="value">The value to write.</param>
Uses the given value to overwrite the original tensor by selecting the indices in the order
given in index. The shape of tensor must exactly match the elements indexed or an error will be thrown.
Uses the given value to overwrite the original tensor by selecting the indices in the order given in index . The shape of tensor must exactly match the elements indexed or an error will be thrown .
public void IndexFill (int dim, LongTensor index, byte value)
        {
            if (index == null)
                throw new ArgumentNullException (nameof (index));
            THByteTensor_indexFill (handle, dim, index.handle, value);
        }
public void IndexFill ( int dim , LongTensor index , byte value ) { if ( index == null ) throw new ArgumentNullException ( nameof ( index ) ) ; THByteTensor_indexFill ( handle , dim , index . handle , value ) ; }
Uses the given value to overwrite the original tensor by selecting the indices in the order
given in index.
Uses the given value to overwrite the original tensor by selecting the indices in the order given in index .
dim
int
Dimension to select for the fill
Dimension to select for the fill
index
LongTensor
Entries to copy
Entries to copy
value
byte
The value to write.
The value to write .