docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Pin

    Pin(Tensor, bool)

    Moves a tensor into memory on the CPU backend device.

    Declaration
    public static BurstTensorData Pin(Tensor X, bool clearOnInit = false)
    Parameters
    Type Name Description
    Tensor X

    The Tensor to move to the CPU.

    bool clearOnInit

    Whether to initialize the backend data. The default value is true.

    Returns
    Type Description
    BurstTensorData

    The pinned BurstTensorData.

    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)