get_dl_model_layerT_get_dl_model_layerGetDlModelLayerGetDlModelLayerget_dl_model_layer (Operator)
Name
get_dl_model_layerT_get_dl_model_layerGetDlModelLayerGetDlModelLayerget_dl_model_layer
— Create a deep copy of the layers and all
of their graph ancestors in a given deep learning model.
Signature
Description
The operator get_dl_model_layerget_dl_model_layerGetDlModelLayerGetDlModelLayerget_dl_model_layer
creates a deep copy of every layer
named in LayerNamesLayerNamesLayerNameslayerNameslayer_names
and all their
graph ancestors in the deep learning model DLModelHandleDLModelHandleDLModelHandleDLModelHandledlmodel_handle
.
You can retrieve the unique layer names using get_dl_model_paramget_dl_model_paramGetDlModelParamGetDlModelParamget_dl_model_param
with
its option 'summary'"summary""summary""summary""summary".
You might use the output layers returned in DLLayersDLLayersDLLayersDLLayersdllayers
as inputs to
the create_dl_layer_*
and create_dl_modelcreate_dl_modelCreateDlModelCreateDlModelcreate_dl_model
operators in order
to create novel model architectures based on existing models.
If you want to get multiple layers of a single model, these layers have to be
specified as a LayerNamesLayerNamesLayerNameslayerNameslayer_names
tuple in a single call to
get_dl_model_layerget_dl_model_layerGetDlModelLayerGetDlModelLayerget_dl_model_layer
. Doing so, you avoid multiple deep copies of graph
ancestors that are potentially shared by the layers.
Example:
get_dl_model_layer(DLModelHandleOrig, ['layer_name_3', 'layer_name_6'], DLLayersOutput)get_dl_model_layer(DLModelHandleOrig, ["layer_name_3", "layer_name_6"], DLLayersOutput)GetDlModelLayer(DLModelHandleOrig, ["layer_name_3", "layer_name_6"], DLLayersOutput)GetDlModelLayer(DLModelHandleOrig, ["layer_name_3", "layer_name_6"], DLLayersOutput)get_dl_model_layer(DLModelHandleOrig, ["layer_name_3", "layer_name_6"], DLLayersOutput)
|
create_dl_model([DLLayersOutput], DLModelHandle)create_dl_model([DLLayersOutput], DLModelHandle)CreateDlModel([DLLayersOutput], DLModelHandle)CreateDlModel([DLLayersOutput], DLModelHandle)create_dl_model([DLLayersOutput], DLModelHandle)
|
Please note, that the output layers are copies. They contain the same weights
and settings as in the given input model but they are unique copies.
You cannot alter the existing model by changing the output layers.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.
Parameters
DLModelHandleDLModelHandleDLModelHandleDLModelHandledlmodel_handle
(input_control) dl_model →
HDlModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Deep learning model.
LayerNamesLayerNamesLayerNameslayerNameslayer_names
(input_control) string(-array) →
HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Names of the layers to be copied.
DLLayersDLLayersDLLayersDLLayersdllayers
(output_control) dl_layer(-array) →
HDlLayer, HTupleSequence[HHandle]HTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Copies of layers and all of their ancestors.
Possible Predecessors
read_dl_modelread_dl_modelReadDlModelReadDlModelread_dl_model
Possible Successors
create_dl_modelcreate_dl_modelCreateDlModelCreateDlModelcreate_dl_model
,
create_dl_layer_activationcreate_dl_layer_activationCreateDlLayerActivationCreateDlLayerActivationcreate_dl_layer_activation
,
create_dl_layer_batch_normalizationcreate_dl_layer_batch_normalizationCreateDlLayerBatchNormalizationCreateDlLayerBatchNormalizationcreate_dl_layer_batch_normalization
,
create_dl_layer_class_id_conversioncreate_dl_layer_class_id_conversionCreateDlLayerClassIdConversionCreateDlLayerClassIdConversioncreate_dl_layer_class_id_conversion
,
create_dl_layer_class_id_conversioncreate_dl_layer_class_id_conversionCreateDlLayerClassIdConversionCreateDlLayerClassIdConversioncreate_dl_layer_class_id_conversion
,
create_dl_layer_concatcreate_dl_layer_concatCreateDlLayerConcatCreateDlLayerConcatcreate_dl_layer_concat
,
create_dl_layer_convolutioncreate_dl_layer_convolutionCreateDlLayerConvolutionCreateDlLayerConvolutioncreate_dl_layer_convolution
,
create_dl_layer_densecreate_dl_layer_denseCreateDlLayerDenseCreateDlLayerDensecreate_dl_layer_dense
,
create_dl_layer_depth_maxcreate_dl_layer_depth_maxCreateDlLayerDepthMaxCreateDlLayerDepthMaxcreate_dl_layer_depth_max
,
create_dl_layer_dropoutcreate_dl_layer_dropoutCreateDlLayerDropoutCreateDlLayerDropoutcreate_dl_layer_dropout
,
create_dl_layer_elementwisecreate_dl_layer_elementwiseCreateDlLayerElementwiseCreateDlLayerElementwisecreate_dl_layer_elementwise
,
create_dl_layer_loss_cross_entropycreate_dl_layer_loss_cross_entropyCreateDlLayerLossCrossEntropyCreateDlLayerLossCrossEntropycreate_dl_layer_loss_cross_entropy
,
create_dl_layer_loss_ctccreate_dl_layer_loss_ctcCreateDlLayerLossCtcCreateDlLayerLossCtccreate_dl_layer_loss_ctc
,
create_dl_layer_loss_distancecreate_dl_layer_loss_distanceCreateDlLayerLossDistanceCreateDlLayerLossDistancecreate_dl_layer_loss_distance
,
create_dl_layer_loss_focalcreate_dl_layer_loss_focalCreateDlLayerLossFocalCreateDlLayerLossFocalcreate_dl_layer_loss_focal
,
create_dl_layer_loss_hubercreate_dl_layer_loss_huberCreateDlLayerLossHuberCreateDlLayerLossHubercreate_dl_layer_loss_huber
,
create_dl_layer_lrncreate_dl_layer_lrnCreateDlLayerLrnCreateDlLayerLrncreate_dl_layer_lrn
,
create_dl_layer_poolingcreate_dl_layer_poolingCreateDlLayerPoolingCreateDlLayerPoolingcreate_dl_layer_pooling
,
create_dl_layer_reducecreate_dl_layer_reduceCreateDlLayerReduceCreateDlLayerReducecreate_dl_layer_reduce
,
create_dl_layer_reshapecreate_dl_layer_reshapeCreateDlLayerReshapeCreateDlLayerReshapecreate_dl_layer_reshape
,
create_dl_layer_softmaxcreate_dl_layer_softmaxCreateDlLayerSoftmaxCreateDlLayerSoftmaxcreate_dl_layer_softmax
,
create_dl_layer_transposed_convolutioncreate_dl_layer_transposed_convolutionCreateDlLayerTransposedConvolutionCreateDlLayerTransposedConvolutioncreate_dl_layer_transposed_convolution
,
create_dl_layer_zoom_factorcreate_dl_layer_zoom_factorCreateDlLayerZoomFactorCreateDlLayerZoomFactorcreate_dl_layer_zoom_factor
,
create_dl_layer_zoom_sizecreate_dl_layer_zoom_sizeCreateDlLayerZoomSizeCreateDlLayerZoomSizecreate_dl_layer_zoom_size
,
create_dl_layer_zoom_to_layer_sizecreate_dl_layer_zoom_to_layer_sizeCreateDlLayerZoomToLayerSizeCreateDlLayerZoomToLayerSizecreate_dl_layer_zoom_to_layer_size
Module
Deep Learning Professional