Method CreateWorker
CreateWorker(Model, DeviceType, bool)
Initializes and returns an instance of IWorker with a model to execute. Sentis selects the best backend type available for deviceType.
This is a convenience method that internally calls WorkerFactory.CreateWorker.
Declaration
public static IWorker CreateWorker(this Model model, DeviceType deviceType, bool verbose = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Model | model | The model to execute. |
| DeviceType | deviceType | The preferred device for execution. For example |
| bool | verbose | Whether to log scheduling of layers execution to the console. |
Returns
| Type | Description |
|---|---|
| IWorker | The instantiated |