docs.unity3d.com
Search Results for

    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.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Sentis
    Assembly: Unity.Sentis.dll
    Syntax
    public struct WorkerFactory.WorkerConfiguration

    Constructors

    WorkerConfiguration(bool)

    Initializes and returns an instance of WorkerConfiguration.

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

    Whether to allow the worker to take ownership of the model weights memory.

    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
    bool
    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)