Method MemCopyStride
MemCopyStride(Tensor, Tensor, int, int, int, int, int, int)
Copy blocks of values from X to O, we copy 'count' blocks each of length 'length' values with initial offsets given by 'offsetX', 'offsetO' and with strides given by 'strideX', 'strideO'
Declaration
public virtual void MemCopyStride(Tensor X, Tensor O, int strideX, int strideO, int length, int count, int offsetX, int offsetO)
Parameters
Type | Name | Description |
---|---|---|
Tensor | X | The input tensor. |
Tensor | O | The output tensor to be computed and filled. |
int | strideX | The stride of the blocks in the input tensor. |
int | strideO | The stride of the blocks in the output tensor. |
int | length | The number of elements in each block. |
int | count | The number of blocks to copy. |
int | offsetX | The first index to copy from in the input tensor. |
int | offsetO | The first index to copy to in the output tensor. |