docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class WorkerFactory

    Provides methods for instantiating workers and ops on given back ends.

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

    Methods

    Name Description
    CreateOps(BackendType, ITensorAllocator)

    Initializes and returns an instance of Ops on a given back end.

    CreateWorker(BackendType, Model, bool)

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

    CreateWorker(BackendType, Model, WorkerConfiguration)

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

    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.

    GetBestTypeForDevice(DeviceType)

    Returns the best backend type for the given deviceType.

    IsType(BackendType, DeviceType)

    Checks if a backend type matches a device type. For example, IsType(BackendType.GPUCompute, DeviceType.GPU) returns true.

    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)