Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///   Copies the elements of tensor into 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 copy</param>
/// <param name="index">Entries to copy</param>
/// <param name="src">Tensor to copy the data from.</param>
Copies the elements of tensor into 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.
Copies the elements of tensor into 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 IndexCopy (int dim, LongTensor index, ByteTensor src)
        {
            if (src == null)
                throw new ArgumentNullException (nameof (src));
            if (index == null)
                throw new ArgumentNullException (nameof (index));
            THByteTensor_indexCopy (handle, dim, index.handle, src.handle);
        }
public void IndexCopy ( int dim , LongTensor index , ByteTensor src ) { if ( src == null ) throw new ArgumentNullException ( nameof ( src ) ) ; if ( index == null ) throw new ArgumentNullException ( nameof ( index ) ) ; THByteTensor_indexCopy ( handle , dim , index . handle , src . handle ) ; }
Copies the elements of tensor into the original tensor by selecting the indices in the order
given in index.
Copies the elements of tensor into the original tensor by selecting the indices in the order given in index .
dim
int
Dimension to select for the copy
Dimension to select for the copy
index
LongTensor
Entries to copy
Entries to copy
src
ByteTensor
Tensor to copy the data from.
Tensor to copy the data from .