Skip to content

get_dl_model_layer_gradientsGetDlModelLayerGradientsGetDlModelLayerGradientsget_dl_model_layer_gradientsT_get_dl_model_layer_gradients🔗

Short description🔗

get_dl_model_layer_gradientsGetDlModelLayerGradientsGetDlModelLayerGradientsget_dl_model_layer_gradientsT_get_dl_model_layer_gradients — Get the gradients of a Deep Learning model layer.

Signature🔗

get_dl_model_layer_gradients( out image Gradients, dl_model DLModelHandle, string LayerName )void GetDlModelLayerGradients( HObject* Gradients, const HTuple& DLModelHandle, const HTuple& LayerName )static void HOperatorSet.GetDlModelLayerGradients( out HObject gradients, HTuple DLModelHandle, HTuple layerName )def get_dl_model_layer_gradients( dlmodel_handle: HHandle, layer_name: str ) -> HObject

Herror T_get_dl_model_layer_gradients( Hobject* Gradients, const Htuple DLModelHandle, const Htuple LayerName )

HImage HDlModel::GetDlModelLayerGradients( const HString& LayerName ) const

HImage HDlModel::GetDlModelLayerGradients( const char* LayerName ) const

HImage HDlModel::GetDlModelLayerGradients( const wchar_t* LayerName ) const (Windows only)

HImage HDlModel.GetDlModelLayerGradients( string layerName )

Description🔗

The operator get_dl_model_layer_gradientsGetDlModelLayerGradients returns in Gradientsgradientsgradients the gradients of the specified LayerNamelayerNamelayer_name of the model DLModelHandleDLModelHandledlmodel_handle.

Gradientsgradientsgradients is a tuple of batch_size many objects, where every object is an image having the size (width, height, depth) of the given LayerNamelayerNamelayer_name.

Execution information🔗

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🔗

Gradientsgradientsgradients (output_object) image(-array) → object (real)HObject (real)HImage (real)HObject (real)Hobject * (real)

Output gradients.

DLModelHandleDLModelHandledlmodel_handle (input_control) dl_model → (handle)HTuple (HHandle)HDlModel, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the deep learning model.

LayerNamelayerNamelayer_name (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

Name of the layer to be queried.

Module🔗

Deep Learning Professional