serialize_dl_modelT_serialize_dl_modelSerializeDlModelSerializeDlModel (Operator)
Name
serialize_dl_modelT_serialize_dl_modelSerializeDlModelSerializeDlModel
— Serialize a deep learning model.
Signature
Description
serialize_dl_modelserialize_dl_modelSerializeDlModelSerializeDlModelSerializeDlModel
serializes the deep learning model
defined by the handle DLModelHandleDLModelHandleDLModelHandleDLModelHandleDLModelHandle
.
The serialized model is returned by the handle
SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandle
and can be deserialized by
deserialize_dl_modeldeserialize_dl_modelDeserializeDlModelDeserializeDlModelDeserializeDlModel
.
See fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItem
for an introduction of the basic
principle of serialization.
The operator acts the same as write_dl_modelwrite_dl_modelWriteDlModelWriteDlModelWriteDlModel
except that the output
is a serialized item instead of a file.
For a detailed description please refer to the documentation of
write_dl_modelwrite_dl_modelWriteDlModelWriteDlModelWriteDlModel
.
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 →
HDlModel, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the deep learning model.
SerializedItemHandleSerializedItemHandleSerializedItemHandleSerializedItemHandleserializedItemHandle
(output_control) serialized_item →
HSerializedItem, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the serialized item.
Result
If the parameters are valid, the operator serialize_dl_modelserialize_dl_modelSerializeDlModelSerializeDlModelSerializeDlModel
returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.
Possible Predecessors
train_dl_model_batchtrain_dl_model_batchTrainDlModelBatchTrainDlModelBatchTrainDlModelBatch
Possible Successors
train_dl_model_batchtrain_dl_model_batchTrainDlModelBatchTrainDlModelBatchTrainDlModelBatch
,
fwrite_serialized_itemfwrite_serialized_itemFwriteSerializedItemFwriteSerializedItemFwriteSerializedItem
,
send_serialized_itemsend_serialized_itemSendSerializedItemSendSerializedItemSendSerializedItem
See also
deserialize_dl_modeldeserialize_dl_modelDeserializeDlModelDeserializeDlModelDeserializeDlModel
,
apply_dl_modelapply_dl_modelApplyDlModelApplyDlModelApplyDlModel
,
train_dl_model_batchtrain_dl_model_batchTrainDlModelBatchTrainDlModelBatchTrainDlModelBatch
Module
Deep Learning Inference