docs.unity3d.com
    Show / Hide Table of Contents

    Struct WorkerFactory.WorkerConfiguration

    Represents the configuration for a WorkerFactory.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Sentis
    Syntax
    public struct WorkerConfiguration

    Constructors

    WorkerConfiguration(Boolean, Boolean)

    Initializes and returns an instance of WorkerConfiguration.

    Declaration
    public WorkerConfiguration(bool verbose = false, bool takeoverWeights = false)
    Parameters
    Type Name Description
    Boolean verbose
    Boolean takeoverWeights

    Fields

    takeoverWeights

    If true the worker is allowed to take ownership of the weights memory from the model this is useful so worker to limit memory pressure when the worker need to copy those weight to a different device.

    Declaration
    public bool takeoverWeights
    Field Value
    Type Description
    Boolean

    verbose

    Whether to log debug information about model execution to the Console window. The default is false.

    Declaration
    public bool verbose
    Field Value
    Type Description
    Boolean
    In This Article
    • Constructors
      • WorkerConfiguration(Boolean, Boolean)
    • Fields
      • takeoverWeights
      • verbose
    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