Class WorkerExtensions | Barracuda | 1.0.4
docs.unity3d.com
    Show / Hide Table of Contents

    Class WorkerExtensions

    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
    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
    Returns
    Type Description
    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
    String name
    Returns
    Type Description
    Tensor
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023