docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BurstTensorData

    Burst specific internal Tensor data storage

    Inheritance
    object
    UniqueResourceId
    SharedArrayTensorData
    UnsafeArrayTensorData
    BurstTensorData
    Implements
    IDependableTensorData
    IDependableMemoryResource
    ITensorData
    IDisposable
    ITensorDataStatistics
    IUniqueResource
    Inherited Members
    SharedArrayTensorData.array
    SharedArrayTensorData.offset
    SharedArrayTensorData.count
    SharedArrayTensorData.maxCapacity
    SharedArrayTensorData.dataType
    SharedArrayTensorData.inUse
    SharedArrayTensorData.isGPUMem
    UniqueResourceId.uniqueId
    UniqueResourceId.GetUniqueId()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Barracuda
    Assembly: solution.dll
    Syntax
    public class BurstTensorData : UnsafeArrayTensorData, IDependableTensorData, IDependableMemoryResource, ITensorData, IDisposable, ITensorDataStatistics, IUniqueResource

    Constructors

    BurstTensorData(int, DataType)

    Creates new array

    Declaration
    public BurstTensorData(int count, DataType dataType)
    Parameters
    Type Name Description
    int count

    count

    DataType dataType

    BurstTensorData(ArrayTensorData)

    Uses shared array

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

    shared array

    BurstTensorData(SharedArrayTensorData)

    Uses shared array

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

    shared array

    BurstTensorData(TensorShape, DataType)

    Creates new array

    Declaration
    public BurstTensorData(TensorShape shape, DataType dataType)
    Parameters
    Type Name Description
    TensorShape shape

    shape

    DataType dataType

    BurstTensorData(UnsafeArrayTensorData)

    Uses unsafe array

    Declaration
    public BurstTensorData(UnsafeArrayTensorData unsafeArray)
    Parameters
    Type Name Description
    UnsafeArrayTensorData unsafeArray

    unsafe array

    Properties

    fence

    Read fence Returns job handle that can be used as dependsOn argument when scheduling data consumer job. Consumer job will start execution once Tensor data is ready for read access.

    Declaration
    public JobHandle fence { get; set; }
    Property Value
    Type Description
    JobHandle

    rawPtr

    Raw memory pointer for the resource

    Declaration
    public void* rawPtr { get; }
    Property Value
    Type Description
    void*

    reuse

    Write fence Returns job handle that can be used as dependsOn argument when scheduling data producer job. Producer job will start execution once Tensor data is ready for write access.

    Declaration
    public JobHandle reuse { get; set; }
    Property Value
    Type Description
    JobHandle

    Methods

    Dispose()

    Dispose contents

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

    Download(TensorShape)

    Return data from internal storage

    Declaration
    public override float[] Download(TensorShape shape)
    Parameters
    Type Name Description
    TensorShape shape

    shape

    Returns
    Type Description
    float[]

    managed array

    Overrides
    SharedArrayTensorData.Download(TensorShape)

    ~BurstTensorData()

    Finalizer

    Declaration
    protected ~BurstTensorData()

    Reserve(int)

    Reserve (allocate) storage for count elements

    Declaration
    public override void Reserve(int count)
    Parameters
    Type Name Description
    int count

    count

    Overrides
    UnsafeArrayTensorData.Reserve(int)

    ScheduleAsyncDownload(int)

    Schedule async internal data download

    Declaration
    public override bool ScheduleAsyncDownload(int count)
    Parameters
    Type Name Description
    int count

    count to download

    Returns
    Type Description
    bool

    true if download is completed

    Overrides
    SharedArrayTensorData.ScheduleAsyncDownload(int)

    SharedAccess(out int)

    Return shared array from internal storage

    Declaration
    public override BarracudaArray SharedAccess(out int offset)
    Parameters
    Type Name Description
    int offset
    Returns
    Type Description
    BarracudaArray

    shared array from internal storage

    Overrides
    SharedArrayTensorData.SharedAccess(out int)

    ToString()

    Object summary as string

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    object summary

    Overrides
    UnsafeArrayTensorData.ToString()

    Upload(float[], TensorShape, int)

    Upload data to internal storage

    Declaration
    public override void Upload(float[] data, TensorShape shape, int managedBufferStartIndex = 0)
    Parameters
    Type Name Description
    float[] data

    data

    TensorShape shape

    shape

    int managedBufferStartIndex

    data start index

    Overrides
    UnsafeArrayTensorData.Upload(float[], TensorShape, int)

    Implements

    IDependableTensorData
    IDependableMemoryResource
    ITensorData
    IDisposable
    ITensorDataStatistics
    IUniqueResource

    Extension Methods

    DeprecatedTensorDataExtensions.GetMaxCount(ITensorData)
    In This Article
    Back to top
    Copyright © 2025 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)