Struct WorkerFactory.WorkerConfiguration
Worker configuration
compareAgainstType
if different than the worker type
, the model will be run on both backend and result of every layer will be compared, checking for divergence. Great for debugging, but very slow because of the sync needed.
verbose
will log scheduling of layers execution to the console (default == false).
compareLogLevel
define how difference will be reported (default == Warning).
compareEpsilon
the maximum tolerance before a difference is reported (default == 0.0001f).
Syntax
public struct WorkerConfiguration
Constructors
WorkerConfiguration(WorkerFactory.Type, Boolean, CompareOpsUtils.LogLevel, Single)
Declaration
public WorkerConfiguration(WorkerFactory.Type compareAgainstType, bool verbose = false, CompareOpsUtils.LogLevel compareLogLevel = CompareOpsUtils.LogLevel.Warning, float compareEpsilon = 0.0001F)
Parameters
Fields
compareAgainstType
Declaration
public WorkerFactory.Type compareAgainstType
Field Value
compareEpsilon
Declaration
public float compareEpsilon
Field Value
compareLogLevel
Declaration
public CompareOpsUtils.LogLevel compareLogLevel
Field Value
verbose
Declaration
Field Value