Method CreateWorker
CreateWorker(BackendType, Model, WorkerConfiguration)
Initializes and returns an instance of IWorker
on a given back end with a model
to execute and workerConfiguration
.
Declaration
public static IWorker CreateWorker(BackendType backendType, Model model, WorkerFactory.WorkerConfiguration workerConfiguration)
Parameters
Type | Name | Description |
---|---|---|
BackendType | backendType | The type of backend to use. |
Model | model | The model to execute with this |
WorkerFactory.WorkerConfiguration | workerConfiguration | The worker configuration to use when executing. |
Returns
Type | Description |
---|---|
IWorker | The created |
CreateWorker(BackendType, Model, bool)
Initializes and returns an instance of IWorker
on a given back end with a model
to execute.
Declaration
public static IWorker CreateWorker(BackendType backendType, Model model, bool verbose = false)
Parameters
Type | Name | Description |
---|---|---|
BackendType | backendType | The type of backend to use. |
Model | model | The model to execute with this |
bool | verbose | Whether to use verbose logging. |
Returns
Type | Description |
---|---|
IWorker | The created |
CreateWorker(Model, DeviceType, bool)
Initializes and returns an instance of IWorker
on a given device with a model
to execute. Sentis selects the best backend type available for deviceType
.
Declaration
public static IWorker CreateWorker(Model model, DeviceType deviceType, bool verbose = false)
Parameters
Type | Name | Description |
---|---|---|
Model | model | The model to execute with this |
DeviceType | deviceType | The type of device to use. Sentis selects the best backend type available for |
bool | verbose | Whether to use verbose logging. |
Returns
Type | Description |
---|---|
IWorker | The created |