Class ArrayTensorData | Barracuda | 1.1.2-preview
docs.unity.cn
    Show / Hide Table of Contents

    Class ArrayTensorData

    Inheritance
    Object
    ArrayTensorData
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Barracuda
    Syntax
    public class ArrayTensorData : ITensorData, IDisposable

    Constructors

    ArrayTensorData(Int32)

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

    ArrayTensorData(TensorShape)

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

    Fields

    m_Array

    Declaration
    protected float[] m_Array
    Field Value
    Type Description
    Single[]

    Properties

    array

    Declaration
    public float[] array { get; }
    Property Value
    Type Description
    Single[]

    maxCapacity

    Declaration
    public virtual int maxCapacity { get; }
    Property Value
    Type Description
    Int32
    Implements
    ITensorData.maxCapacity

    Methods

    Dispose()

    Declaration
    public virtual void Dispose()
    Implements
    IDisposable.Dispose()

    Download(TensorShape)

    Declaration
    public virtual float[] Download(TensorShape shape)
    Parameters
    Type Name Description
    TensorShape shape
    Returns
    Type Description
    Single[]
    Implements
    ITensorData.Download(TensorShape)

    Finalize()

    Declaration
    protected void Finalize()

    Reserve(Int32)

    Declaration
    public virtual void Reserve(int count)
    Parameters
    Type Name Description
    Int32 count
    Implements
    ITensorData.Reserve(Int32)

    ScheduleAsyncDownload(Int32)

    Declaration
    public virtual bool ScheduleAsyncDownload(int count)
    Parameters
    Type Name Description
    Int32 count
    Returns
    Type Description
    Boolean
    Implements
    ITensorData.ScheduleAsyncDownload(Int32)

    SharedAccess(out Int32)

    Declaration
    public virtual float[] SharedAccess(out int offset)
    Parameters
    Type Name Description
    Int32 offset
    Returns
    Type Description
    Single[]
    Implements
    ITensorData.SharedAccess(out Int32)

    ToString()

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

    Upload(Single[], TensorShape, Int32)

    Declaration
    public virtual void Upload(float[] data, TensorShape shape, int managedBufferStartIndex = 0)
    Parameters
    Type Name Description
    Single[] data
    TensorShape shape
    Int32 managedBufferStartIndex
    Implements
    ITensorData.Upload(Single[], TensorShape, Int32)

    Extension Methods

    DeprecatedTensorDataExtensions.GetMaxCount(ITensorData)
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 15 October 2020