docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Execute

    Execute(Tensor[], ExecutionContext)

    Executes the layer using the operations and variables from the ExecutionContext and returns the output tensor.

    If the layer has more than one output, output tensors are saved to variables.

    Declaration
    public abstract Tensor Execute(Tensor[] inputTensors, ExecutionContext ctx)
    Parameters
    Type Name Description
    Tensor[] inputTensors

    The input tensor for the execution.

    ExecutionContext ctx

    The execution context with the backend and variables for the execution.

    Returns
    Type Description
    Tensor

    The first output tensor of the execution.

    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)