Struct WorkerFactory.WorkerConfiguration
Represents the configuration for a WorkerFactory
.
Inherited Members
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 |