write_dl_modelT_write_dl_modelWriteDlModelWriteDlModel (Operator)

Name

write_dl_modelT_write_dl_modelWriteDlModelWriteDlModel — Write a deep learning model in a file.

Signature

write_dl_model( : : DLModelHandle, FileName : )

Herror T_write_dl_model(const Htuple DLModelHandle, const Htuple FileName)

void WriteDlModel(const HTuple& DLModelHandle, const HTuple& FileName)

void HDlModel::WriteDlModel(const HString& FileName) const

void HDlModel::WriteDlModel(const char* FileName) const

void HDlModel::WriteDlModel(const wchar_t* FileName) const   (Windows only)

static void HOperatorSet.WriteDlModel(HTuple DLModelHandle, HTuple fileName)

void HDlModel.WriteDlModel(string fileName)

Description

write_dl_modelwrite_dl_modelWriteDlModelWriteDlModelWriteDlModel writes the deep learning model DLModelHandleDLModelHandleDLModelHandleDLModelHandleDLModelHandle to the file given by FileNameFileNameFileNameFileNamefileName. Please note that the runtime specific parameter gpugpugpugpugpu is not written.

The default HALCON file extension for deep learning models is '.hdl'.

The model can be read with read_dl_modelread_dl_modelReadDlModelReadDlModelReadDlModel.

For further explanations to deep learning models in HALCON, see the chapter Deep Learning / Model.

Execution Information

Parameters

DLModelHandleDLModelHandleDLModelHandleDLModelHandleDLModelHandle (input_control)  dl_model HDlModel, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the deep learning model.

FileNameFileNameFileNameFileNamefileName (input_control)  filename.read HTupleHTupleHtuple (string) (string) (HString) (char*)

Filename

File extension: .hdl

Result

If the parameters are valid, the operator write_dl_modelwrite_dl_modelWriteDlModelWriteDlModelWriteDlModel returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

read_dl_modelread_dl_modelReadDlModelReadDlModelReadDlModel, train_dl_model_batchtrain_dl_model_batchTrainDlModelBatchTrainDlModelBatchTrainDlModelBatch, set_dl_model_paramset_dl_model_paramSetDlModelParamSetDlModelParamSetDlModelParam

Module

Deep Learning Training