docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor SharedArrayTensorData

    SharedArrayTensorData(TensorShape, Array)

    Initializes and returns an instance of SharedArrayTensorData with a given array of data.

    Declaration
    public SharedArrayTensorData(TensorShape shape, Array data)
    Parameters
    Type Name Description
    TensorShape shape

    The shape of the tensor data.

    Array data

    The data to use as backing data.

    SharedArrayTensorData(TensorShape, NativeTensorArray, int)

    Initializes and returns an instance of SharedArrayTensorData with a given NativeTensorArray of data.

    Declaration
    public SharedArrayTensorData(TensorShape shape, NativeTensorArray data, int offset = 0)
    Parameters
    Type Name Description
    TensorShape shape

    The shape of the tensor data.

    NativeTensorArray data

    The allocated data to use as backing data.

    int offset

    The integer offset to use for the data.

    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)