Constructor GenericWorker
GenericWorker(Model, IBackend, IVars, bool, bool)
Initializes and returns an instance of GenericWorker
for the specified model
and ops
.
Declaration
public GenericWorker(Model model, IBackend backend, IVars vars, bool verbose = false, bool takeoverWeights = false)
Parameters
Type | Name | Description |
---|---|---|
Model | model | The model to execute. |
IBackend | backend | The backend to use for execution. |
IVars | vars | The stored tensor variables to use for execution. |
bool | verbose | Whether to enable verbose logging during execution. |
bool | takeoverWeights | Whether to allow the worker to take ownership of the model weights during execution. |