clear_dl_modelT_clear_dl_modelClearDlModelClearDlModel (Operator)
Name
clear_dl_modelT_clear_dl_modelClearDlModelClearDlModel
— Clear a deep learning model.
Signature
Description
clear_dl_modelclear_dl_modelClearDlModelClearDlModelClearDlModel
clears the handle of the deep learning model given
by DLModelHandleDLModelHandleDLModelHandleDLModelHandleDLModelHandle
and frees all memory required for the model.
After calling clear_dl_modelclear_dl_modelClearDlModelClearDlModelClearDlModel
, the model can no longer be used
and the handle DLModelHandleDLModelHandleDLModelHandleDLModelHandleDLModelHandle
becomes invalid.
For further explanations to deep learning models in HALCON,
see the chapter Deep Learning / Model.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
DLModelHandleDLModelHandleDLModelHandleDLModelHandleDLModelHandle
(input_control) dl_model(-array) →
HDlModel, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the deep learning model.
Result
If the parameters are valid, the operator clear_dl_modelclear_dl_modelClearDlModelClearDlModelClearDlModel
returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.
Possible Predecessors
read_dl_modelread_dl_modelReadDlModelReadDlModelReadDlModel
,
apply_dl_modelapply_dl_modelApplyDlModelApplyDlModelApplyDlModel
,
train_dl_model_batchtrain_dl_model_batchTrainDlModelBatchTrainDlModelBatchTrainDlModelBatch
,
train_dl_model_anomaly_datasettrain_dl_model_anomaly_datasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDatasetTrainDlModelAnomalyDataset
Module
Deep Learning Inference