Skip to content

create_dl_layer_dropoutCreateDlLayerDropoutCreateDlLayerDropoutcreate_dl_layer_dropoutT_create_dl_layer_dropout🔗

Short description🔗

create_dl_layer_dropoutCreateDlLayerDropoutCreateDlLayerDropoutcreate_dl_layer_dropoutT_create_dl_layer_dropout — Create a DropOut layer.

Signature🔗

create_dl_layer_dropout( dl_layer DLLayerInput, string LayerName, number Probability, attribute.name GenParamName, attribute.value GenParamValue, out dl_layer DLLayerDropOut )void CreateDlLayerDropout( const HTuple& DLLayerInput, const HTuple& LayerName, const HTuple& Probability, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* DLLayerDropOut )static void HOperatorSet.CreateDlLayerDropout( HTuple DLLayerInput, HTuple layerName, HTuple probability, HTuple genParamName, HTuple genParamValue, out HTuple DLLayerDropOut )def create_dl_layer_dropout( dllayer_input: HHandle, layer_name: str, probability: float, gen_param_name: MaybeSequence[str], gen_param_value: MaybeSequence[Union[int, float, str]] ) -> HHandle

Herror T_create_dl_layer_dropout( const Htuple DLLayerInput, const Htuple LayerName, const Htuple Probability, const Htuple GenParamName, const Htuple GenParamValue, Htuple* DLLayerDropOut )

HDlLayer HDlLayer::CreateDlLayerDropout( const HString& LayerName, double Probability, const HTuple& GenParamName, const HTuple& GenParamValue ) const

HDlLayer HDlLayer::CreateDlLayerDropout( const HString& LayerName, double Probability, const HString& GenParamName, const HString& GenParamValue ) const

HDlLayer HDlLayer::CreateDlLayerDropout( const char* LayerName, double Probability, const char* GenParamName, const char* GenParamValue ) const

HDlLayer HDlLayer::CreateDlLayerDropout( const wchar_t* LayerName, double Probability, const wchar_t* GenParamName, const wchar_t* GenParamValue ) const (Windows only)

HDlLayer HDlLayer.CreateDlLayerDropout( string layerName, double probability, HTuple genParamName, HTuple genParamValue )

HDlLayer HDlLayer.CreateDlLayerDropout( string layerName, double probability, string genParamName, string genParamValue )

Description🔗

The operator create_dl_layer_dropoutCreateDlLayerDropout creates a DropOut layer with probability Probabilityprobabilityprobability and returns the handle DLLayerDropOutDLLayerDropOutdllayer_drop_out.

The parameter DLLayerInputDLLayerInputdllayer_input determines the feeding input layer and expects the layer handle as value.

The parameter LayerNamelayerNamelayer_name sets an individual layer name. Note that if creating a model using create_dl_modelCreateDlModel each layer of the created network must have a unique name.

During training, activations within DLLayerInputDLLayerInputdllayer_input are set to zero with probability Probabilityprobabilityprobability. All other activations are rescaled with (1 - Probabilityprobabilityprobability).

The following generic parameters GenParamNamegenParamNamegen_param_name and the corresponding values GenParamValuegenParamValuegen_param_value are supported:

  • 'is_inference_output'"is_inference_output": Determines whether apply_dl_modelApplyDlModel will include the output of this layer in the dictionary DLResultBatchDLResultBatchdlresult_batch even without specifying this layer in Outputsoutputsoutputs ('true'"true") or not ('false'"false").

    Default: 'false'"false"

Certain parameters of layers created using this operator create_dl_layer_dropoutCreateDlLayerDropout can be set and retrieved using further operators. The following tables give an overview, which parameters can be set using set_dl_model_layer_paramSetDlModelLayerParam and which ones can be retrieved using get_dl_model_layer_paramGetDlModelLayerParam or get_dl_layer_paramGetDlLayerParam. Note, the operators set_dl_model_layer_paramSetDlModelLayerParam and get_dl_model_layer_paramGetDlModelLayerParam require a model created by create_dl_modelCreateDlModel.

Layer Parameters set get
'input_layer'"input_layer" (DLLayerInputDLLayerInputdllayer_input) x
'name'"name" (LayerNamelayerNamelayer_name) x x
'output_layer'"output_layer" (DLLayerDropOutDLLayerDropOutdllayer_drop_out) x
'probability'"probability" (Probabilityprobabilityprobability) x
'shape'"shape" x
'type'"type" x
Generic Layer Parameters set get
'is_inference_output'"is_inference_output" x x
'num_trainable_params'"num_trainable_params" x

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🔗

DLLayerInputDLLayerInputdllayer_input (input_control) dl_layer → (handle)HTuple (HHandle)HDlLayer, HTuple (IntPtr)HHandleHtuple (handle)

Feeding layer.

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

Name of the output layer.

Probabilityprobabilityprobability (input_control) number → (real)HTuple (double)HTuple (double)floatHtuple (double)

Probability.

Default: 0.50.5

GenParamNamegenParamNamegen_param_name (input_control) attribute.name(-array) → (string)HTuple (HString)HTuple (string)MaybeSequence[str]Htuple (char*)

Generic input parameter names.

Default: [][]
List of values: 'is_inference_output'"is_inference_output"

GenParamValuegenParamValuegen_param_value (input_control) attribute.value(-array) → (string / integer / real)HTuple (HString / Hlong / double)HTuple (string / int / long / double)MaybeSequence[Union[int, float, str]]Htuple (char* / Hlong / double)

Generic input parameter values.

Default: [][]
Suggested values: 'true', 'false'"true", "false"

DLLayerDropOutDLLayerDropOutdllayer_drop_out (output_control) dl_layer → (handle)HTuple (HHandle)HDlLayer, HTuple (IntPtr)HHandleHtuple (handle)

DropOut layer.

Module🔗

Deep Learning Professional