docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class WorkerExtensions

    IWorker interface extensions

    Inheritance
    object
    WorkerExtensions
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Barracuda
    Assembly: solution.dll
    Syntax
    public static class WorkerExtensions

    Methods

    CopyOutput(IWorker)

    Returns CPU copy of the first output tensor. This method is a blocking call and will wait until network execution is completed. Useful when network has only one output.

    Declaration
    public static Tensor CopyOutput(this IWorker worker)
    Parameters
    Type Name Description
    IWorker worker

    IWorker

    Returns
    Type Description
    Tensor

    output Tensor

    CopyOutput(IWorker, string)

    Returns CPU copy of output tensor by name. This method is a blocking call and will wait until network execution is completed.

    Declaration
    public static Tensor CopyOutput(this IWorker worker, string name)
    Parameters
    Type Name Description
    IWorker worker

    IWorker

    string name

    output Tensor name

    Returns
    Type Description
    Tensor

    output Tensor

    In This Article
    Back to top
    Copyright © 2025 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)