FisFilter_WEAVER_DeployModel
Header: | FILDL.h |
---|---|
Namespace: | weaver |
Module: | DeepLearning |
Loads a deep learning model and prepares its execution on a specific target device.
Syntax
void weaver::FisFilter_WEAVER_DeployModel ( const ftl::File& inModelFile, const ftl::Optional<fil::DeviceKind::Type>& inDeviceType, const int inDeviceIndex, const ftl::Array<ftl::Optional<fil::TensorDataOrdering::Type>>& inDesiredOutputOrders, fil::WeaverModelId& outModelId )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inModelFile | const File& | A path to the model saved by Keras | |||
inDeviceType | const Optional<DeviceKind::Type>& | NIL | A type of a device selected for deploying and executing the model. If not set, device depending on version (CPU/GPU) of installed Deep Learning add-on is selected. If not set, device depending on version (CPU/GPU) of installed Deep Learning add-on is selected. | ||
inDeviceIndex | const int | 0 - | 0 | An index of a device selected for deploying and executing the model. | |
inDesiredOutputOrders | const Array<Optional<TensorDataOrdering::Type>>& | A required data order of the output tensors | |||
outModelId | WeaverModelId& | Identifier of the deployed model |