docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Execute

    Execute(IDictionary<string, Tensor>)

    Sets multiple tensors as the inputs of the model and schedules execution of the model. This is non-blocking.

    Declaration
    public virtual IWorker Execute(IDictionary<string, Tensor> inputs)
    Parameters
    Type Name Description
    IDictionary<string, Tensor> inputs
    Returns
    Type Description
    IWorker

    The IWorker.

    Implements
    IWorker.Execute(IDictionary<string, Tensor>)

    Execute(Tensor)

    Sets a tensor as the default input of the model and schedules the execution of the model on the worker. This is non-blocking. For models with more than one input this sets the first input.

    Declaration
    public virtual IWorker Execute(Tensor input)
    Parameters
    Type Name Description
    Tensor input
    Returns
    Type Description
    IWorker

    The IWorker.

    Implements
    IWorker.Execute(Tensor)

    Execute()

    Schedules the execution of the model on the worker. This is non-blocking.

    Declaration
    public virtual IWorker Execute()
    Returns
    Type Description
    IWorker

    The IWorker.

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