docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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 override 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.

    Overrides
    CPUBackend.MemCopyStride(Tensor, Tensor, int, int, int, int, int, int)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)