docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ITensorAllocator

    An interface that provides methods for allocating tensors.

    Inherited Members
    IDisposable.Dispose()
    Namespace: Unity.Sentis
    Assembly: solution.dll
    Syntax
    public interface ITensorAllocator : IDisposable

    Methods

    Name Description
    Alloc(TensorShape, DataType, DeviceType, AllocScope)

    Allocates a tensor of a given shape, data type on a given device type, and given scope.

    Alloc(TensorShape, DataType, ITensorData, AllocScope)

    Allocates a tensor of a given shape, data type, and a given scope from an existing ITensorData buffer.

    MoveToDevice(Tensor, ITensorData, ITensorData, bool)

    Moves a tensor to a device.

    PostLayerCleanup()

    Allows ITensorAllocator to run cleanup operations such as clearing temporary buffers only used in the scope of the last layer executed.

    Release(Tensor, bool)

    Releases a tensor.

    Reset(bool)

    Resets the allocator.

    WaiveOwnership(Tensor)

    Waives ownership of a tensor.

    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)