create_dl_layer_dropout T_create_dl_layer_dropout CreateDlLayerDropout CreateDlLayerDropout create_dl_layer_dropout (算子)
名称
create_dl_layer_dropout T_create_dl_layer_dropout CreateDlLayerDropout CreateDlLayerDropout create_dl_layer_dropout — 创建丢弃层。
签名
void CreateDlLayerDropout (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)
static void HOperatorSet .CreateDlLayerDropout (HTuple DLLayerInput , HTuple layerName , HTuple probability , HTuple genParamName , HTuple genParamValue , out HTuple DLLayerDropOut )
HDlLayer HDlLayer .CreateDlLayerDropout (string layerName , double probability , HTuple genParamName , HTuple genParamValue )
HDlLayer HDlLayer .CreateDlLayerDropout (string layerName , double probability , string genParamName , string genParamValue )
描述
算子 create_dl_layer_dropout create_dl_layer_dropout CreateDlLayerDropout CreateDlLayerDropout CreateDlLayerDropout create_dl_layer_dropout creates a DropOut layer with
probability Probability Probability Probability Probability probability probability and returns the handle DLLayerDropOut DLLayerDropOut DLLayerDropOut DLLayerDropOut DLLayerDropOut dllayer_drop_out 。
The parameter DLLayerInput DLLayerInput DLLayerInput DLLayerInput DLLayerInput dllayer_input determines the feeding input layer and
expects the layer handle as value.
The parameter LayerName LayerName LayerName LayerName layerName layer_name sets an individual layer name.
Note that if creating a model using create_dl_model create_dl_model CreateDlModel CreateDlModel CreateDlModel create_dl_model each layer of
the created network must have a unique name.
During training, activations within DLLayerInput DLLayerInput DLLayerInput DLLayerInput DLLayerInput dllayer_input are set to zero
with probability Probability Probability Probability Probability probability probability . All other activations are rescaled
with (1 - Probability Probability Probability Probability probability probability ).
The following generic parameters GenParamName GenParamName GenParamName GenParamName genParamName gen_param_name and the corresponding
values GenParamValue GenParamValue GenParamValue GenParamValue genParamValue gen_param_value are supported:
'is_inference_output' "is_inference_output" "is_inference_output" "is_inference_output" "is_inference_output" "is_inference_output" :
Determines whether apply_dl_model apply_dl_model ApplyDlModel ApplyDlModel ApplyDlModel apply_dl_model will include the output of this
layer in the dictionary DLResultBatch DLResultBatch DLResultBatch DLResultBatch DLResultBatch dlresult_batch even without specifying this
layer in Outputs Outputs Outputs Outputs outputs outputs ('true' "true" "true" "true" "true" "true" ) or not ('false' "false" "false" "false" "false" "false" ).
Default: 'false' "false" "false" "false" "false" "false"
Certain parameters of layers created using this operator
create_dl_layer_dropout create_dl_layer_dropout CreateDlLayerDropout CreateDlLayerDropout CreateDlLayerDropout create_dl_layer_dropout can be set and retrieved using
further operators.
The following tables give an overview, which parameters can be set
using set_dl_model_layer_param set_dl_model_layer_param SetDlModelLayerParam SetDlModelLayerParam SetDlModelLayerParam set_dl_model_layer_param and which ones can be retrieved
using get_dl_model_layer_param get_dl_model_layer_param GetDlModelLayerParam GetDlModelLayerParam GetDlModelLayerParam get_dl_model_layer_param or get_dl_layer_param get_dl_layer_param GetDlLayerParam GetDlLayerParam GetDlLayerParam get_dl_layer_param 。Note, the
operators set_dl_model_layer_param set_dl_model_layer_param SetDlModelLayerParam SetDlModelLayerParam SetDlModelLayerParam set_dl_model_layer_param and get_dl_model_layer_param get_dl_model_layer_param GetDlModelLayerParam GetDlModelLayerParam GetDlModelLayerParam get_dl_model_layer_param
require a model created by create_dl_model create_dl_model CreateDlModel CreateDlModel CreateDlModel create_dl_model 。
Generic Layer Parameters
set
get
'is_inference_output' "is_inference_output" "is_inference_output" "is_inference_output" "is_inference_output" "is_inference_output"
'num_trainable_params' "num_trainable_params" "num_trainable_params" "num_trainable_params" "num_trainable_params" "num_trainable_params"
执行信息
多线程类型:可重入(与非独占算子并行运行)。
多线程作用域:全局(可从任何线程调用)。
未采用并行化处理。
参数
DLLayerInput DLLayerInput DLLayerInput DLLayerInput DLLayerInput dllayer_input (输入控制) dl_layer → HDlLayer , HTuple HHandle HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Feeding layer.
LayerName LayerName LayerName LayerName layerName layer_name (输入控制) string → HTuple str HTuple Htuple (string) (string ) (HString ) (char* )
Name of the output layer.
Probability Probability Probability Probability probability probability (输入控制) number → HTuple float HTuple Htuple (real) (double ) (double ) (double )
Probability.
默认值:
0.5
GenParamName GenParamName GenParamName GenParamName genParamName gen_param_name (输入控制) attribute.name(-array) → HTuple MaybeSequence[str] HTuple Htuple (string) (string ) (HString ) (char* )
Generic input parameter names.
默认值:
[]
值列表:
'is_inference_output' "is_inference_output" "is_inference_output" "is_inference_output" "is_inference_output" "is_inference_output"
GenParamValue GenParamValue GenParamValue GenParamValue genParamValue gen_param_value (输入控制) attribute.value(-array) → HTuple MaybeSequence[Union[int, float, str]] HTuple Htuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)
Generic input parameter values.
默认值:
[]
建议值:
'true' "true" "true" "true" "true" "true" , 'false' "false" "false" "false" "false" "false"
DLLayerDropOut DLLayerDropOut DLLayerDropOut DLLayerDropOut DLLayerDropOut dllayer_drop_out (输出控制) dl_layer → HDlLayer , HTuple HHandle HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
DropOut layer.
模块
深度学习训练