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