docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method PeekOutput

    PeekOutput()

    Returns a reference to the default output tensor. This is non-blocking.

    For models with more than one output this returns a reference to the first output tensor.

    The reference is valid only until you call Execute() or Dispose() on the worker.

    If you want to dispose of the worker but keep the tensor, use FinishExecutionAndDownloadOutput() instead, or use TakeOwnership() on the output tensor.

    Declaration
    public virtual Tensor PeekOutput()
    Returns
    Type Description
    Tensor

    The output tensor.

    Implements
    IWorker.PeekOutput()

    PeekOutput(string)

    Returns a reference to an output tensor with a given name. This is non-blocking.

    The reference is valid only until you call Execute() or Dispose() on the worker.

    If you want to dispose of the worker but keep the tensor, use FinishExecutionAndDownloadOutput() instead, or use TakeOwnership() on the output tensor.

    Declaration
    public virtual Tensor PeekOutput(string name)
    Parameters
    Type Name Description
    string name

    The name of the output tensor to peek.

    Returns
    Type Description
    Tensor

    The output tensor.

    Implements
    IWorker.PeekOutput(string)
    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)