docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method PinToDevice

    PinToDevice(Tensor, bool)

    Pins and returns a tensor using this backend.

    Declaration
    Tensor PinToDevice(Tensor X, bool clearOnInit = false)
    Parameters
    Type Name Description
    Tensor X

    The input tensor.

    bool clearOnInit

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

    Returns
    Type Description
    Tensor

    The pinned input 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)