docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Pin

    Pin(Tensor, int, bool)

    Moves the tensor into GPU memory on the GPUPixel back end device.

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

    The tensor to move to the compute backend.

    int blockAxis

    Which axis to block the tensor shape on.

    bool clearOnInit

    Whether to zero the data on pinning. The default value is false.

    Returns
    Type Description
    TextureTensorData

    The pinned TextureTensorData.

    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)