clear_dl_modelT_clear_dl_modelClearDlModelClearDlModel (Operator)

Name

clear_dl_modelT_clear_dl_modelClearDlModelClearDlModel — Clear a deep learning model.

Signature

clear_dl_model( : : DLModelHandle : )

Herror T_clear_dl_model(const Htuple DLModelHandle)

void ClearDlModel(const HTuple& DLModelHandle)

static void HDlModel::ClearDlModel(const HDlModelArray& DLModelHandle)

void HDlModel::ClearDlModel() const

static void HOperatorSet.ClearDlModel(HTuple DLModelHandle)

static void HDlModel.ClearDlModel(HDlModel[] DLModelHandle)

void HDlModel.ClearDlModel()

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

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

Module

Deep Learning Inference