docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method MoveToDevice

    MoveToDevice(Tensor, ITensorData, ITensorData, bool)

    Moves a tensor to a device.

    Declaration
    void MoveToDevice(Tensor X, ITensorData newBuffer, ITensorData oldBuffer, bool disposeDetachedBufferHint)
    Parameters
    Type Name Description
    Tensor X

    The tensor to move.

    ITensorData newBuffer

    The new buffer for the tensor data.

    ITensorData oldBuffer

    The previous buffer for the tensor data.

    bool disposeDetachedBufferHint

    Whether the old buffer can be freed up for disposal.

    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)