docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IReadableTensorData

    An interface that represents tensor data that can be read to and written from on CPU.

    Namespace: Unity.Sentis
    Assembly: solution.dll
    Syntax
    public interface IReadableTensorData

    Methods

    Name Description
    GetReadOnlyNativeArrayHandle<T>(int, int)

    Returns a ReadOnlyNativeArray handle on the linear memory data.

    Get<T>(int)

    Returns a data element.

    Set<T>(int, T)

    Sets value data element at index.

    ToArray<T>(int, int)

    Returns an array that is a copy of the linear memory data.

    ToReadOnlySpan<T>(int, int)

    Returns a ReadOnlySpan on the linear memory 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)