Class UnsafeArrayTensorData | Barracuda | 0.7.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class UnsafeArrayTensorData

    Inheritance
    Object
    SharedArrayTensorData
    UnsafeArrayTensorData
    Inherited Members
    SharedArrayTensorData.m_Array
    SharedArrayTensorData.m_Offset
    SharedArrayTensorData.m_Count
    SharedArrayTensorData.array
    SharedArrayTensorData.offset
    SharedArrayTensorData.count
    SharedArrayTensorData.ScheduleAsyncDownload(Int32)
    SharedArrayTensorData.SharedAccess(Int32)
    SharedArrayTensorData.GetMaxCount()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Barracuda
    Syntax
    public class UnsafeArrayTensorData : SharedArrayTensorData, ITensorData, IDisposable

    Constructors

    UnsafeArrayTensorData(Int32)

    Declaration
    public UnsafeArrayTensorData(int count)
    Parameters
    Type Name Description
    Int32 count

    UnsafeArrayTensorData(ArrayTensorData)

    Declaration
    public UnsafeArrayTensorData(ArrayTensorData sharedArray)
    Parameters
    Type Name Description
    ArrayTensorData sharedArray

    UnsafeArrayTensorData(SharedArrayTensorData)

    Declaration
    public UnsafeArrayTensorData(SharedArrayTensorData sharedArray)
    Parameters
    Type Name Description
    SharedArrayTensorData sharedArray

    UnsafeArrayTensorData(TensorShape)

    Declaration
    public UnsafeArrayTensorData(TensorShape shape)
    Parameters
    Type Name Description
    TensorShape shape

    Fields

    m_Readonly

    Declaration
    protected bool m_Readonly
    Field Value
    Type Description
    Boolean

    Methods

    Dispose()

    Declaration
    public override void Dispose()
    Overrides
    SharedArrayTensorData.Dispose()

    Download(TensorShape)

    Declaration
    public override float[] Download(TensorShape shape)
    Parameters
    Type Name Description
    TensorShape shape
    Returns
    Type Description
    Single[]
    Overrides
    SharedArrayTensorData.Download(TensorShape)

    Finalize()

    Declaration
    protected void Finalize()

    Reserve(Int32)

    Declaration
    public override void Reserve(int count)
    Parameters
    Type Name Description
    Int32 count
    Overrides
    SharedArrayTensorData.Reserve(Int32)

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    SharedArrayTensorData.ToString()

    Upload(Single[], TensorShape, Int32)

    Declaration
    public override void Upload(float[] data, TensorShape shape, int managedBufferStartIndex = 0)
    Parameters
    Type Name Description
    Single[] data
    TensorShape shape
    Int32 managedBufferStartIndex
    Overrides
    SharedArrayTensorData.Upload(Single[], TensorShape, Int32)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023