You are here: Start » DLInvoke.DL_ReadCharacters_Deploy
Loads a deep learning model and prepares its execution on a specific target device.
Namespace: | Avl |
---|---|
Assembly: | AvlNet.DL.Cpu.dll |
Syntax
C++
C#
public static void DL_ReadCharacters_Deploy ( Optional<string> inModelDirectory, Avl.OcrPretrainedModel inPretrainedModelType, Optional<Avl.DeviceKind> inDeviceType, int inDeviceIndex, Optional<Avl.OcrDeployHint> inExecutionHint, Avl.ReadCharactersModelId outModelId )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inModelDirectory | Atl.Optional<string> | A Read Characters model stored in a specific disk directory. If not set, model is chosen on the basis of inPretrainedModelType. Default value: atl::NIL. | ||
![]() | inPretrainedModelType | Avl.OcrPretrainedModel | Type of a pretrained model (distributed with Deep Learning add-on) to deploy. Ignored if inModelDirectory is set. Default value: Scalable. | ||
![]() | inDeviceType | Atl.Optional<Avl.DeviceKind> | 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. Default value: atl::NIL. | ||
![]() | inDeviceIndex | int | An index of a device selected for deploying and executing the model. Default value: 0. | ||
![]() | inExecutionHint | Atl.Optional<Avl.OcrDeployHint> | Prepares the model for an execution with provided settings in advance. Default value: atl::NIL. | ||
![]() | outModelId | Avl.ReadCharactersModelId | Identifier of the deployed model. |