docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Upload

    Upload<T>(NativeArray<T>, int, int)

    Uploads a contiguous block of tensor data to internal storage.

    Declaration
    public void Upload<T>(NativeArray<T> data, int srcCount, int srcOffset = 0) where T : unmanaged
    Parameters
    Type Name Description
    NativeArray<T> data

    The data to upload.

    int srcCount

    The number of elements to upload.

    int srcOffset

    The index of the first data element to upload.

    Type Parameters
    Name Description
    T

    The type of data to upload.

    Implements
    ITensorData.Upload<T>(NativeArray<T>, 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)