docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateWorker

    CreateWorker(BackendType, Model, WorkerConfiguration)

    Initializes and returns an instance of IWorker on a given back end with a model to execute and workerConfiguration.

    Declaration
    public static IWorker CreateWorker(BackendType backendType, Model model, WorkerFactory.WorkerConfiguration workerConfiguration)
    Parameters
    Type Name Description
    BackendType backendType

    The type of backend to use.

    Model model

    The model to execute with this IWorker.

    WorkerFactory.WorkerConfiguration workerConfiguration

    The worker configuration to use when executing.

    Returns
    Type Description
    IWorker

    The created IWorker instance.

    CreateWorker(BackendType, Model, bool)

    Initializes and returns an instance of IWorker on a given back end with a model to execute.

    Declaration
    public static IWorker CreateWorker(BackendType backendType, Model model, bool verbose = false)
    Parameters
    Type Name Description
    BackendType backendType

    The type of backend to use.

    Model model

    The model to execute with this IWorker.

    bool verbose

    Whether to use verbose logging.

    Returns
    Type Description
    IWorker

    The created IWorker instance.

    CreateWorker(Model, DeviceType, bool)

    Initializes and returns an instance of IWorker on a given device with a model to execute. Sentis selects the best backend type available for deviceType.

    Declaration
    public static IWorker CreateWorker(Model model, DeviceType deviceType, bool verbose = false)
    Parameters
    Type Name Description
    Model model

    The model to execute with this IWorker.

    DeviceType deviceType

    The type of device to use. Sentis selects the best backend type available for deviceType.

    bool verbose

    Whether to use verbose logging.

    Returns
    Type Description
    IWorker

    The created IWorker instance.

    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)