create_dl_layer_dense T_create_dl_layer_dense CreateDlLayerDense CreateDlLayerDense create_dl_layer_dense (Operator)
Name
create_dl_layer_dense T_create_dl_layer_dense CreateDlLayerDense CreateDlLayerDense create_dl_layer_dense — Erstellen eines Dense-Layers.
Signatur
void CreateDlLayerDense (const HTuple& DLLayerInput , const HTuple& LayerName , const HTuple& NumOut , const HTuple& GenParamName , const HTuple& GenParamValue , HTuple* DLLayerDense )
HDlLayer HDlLayer ::CreateDlLayerDense (const HString& LayerName , Hlong NumOut , const HTuple& GenParamName , const HTuple& GenParamValue ) const
HDlLayer HDlLayer ::CreateDlLayerDense (const HString& LayerName , Hlong NumOut , const HString& GenParamName , const HString& GenParamValue ) const
HDlLayer HDlLayer ::CreateDlLayerDense (const char* LayerName , Hlong NumOut , const char* GenParamName , const char* GenParamValue ) const
HDlLayer HDlLayer ::CreateDlLayerDense (const wchar_t* LayerName , Hlong NumOut , const wchar_t* GenParamName , const wchar_t* GenParamValue ) const
(Nur Windows)
static void HOperatorSet .CreateDlLayerDense (HTuple DLLayerInput , HTuple layerName , HTuple numOut , HTuple genParamName , HTuple genParamValue , out HTuple DLLayerDense )
HDlLayer HDlLayer .CreateDlLayerDense (string layerName , int numOut , HTuple genParamName , HTuple genParamValue )
HDlLayer HDlLayer .CreateDlLayerDense (string layerName , int numOut , string genParamName , string genParamValue )
Beschreibung
Der Operator create_dl_layer_dense create_dl_layer_dense CreateDlLayerDense CreateDlLayerDense CreateDlLayerDense create_dl_layer_dense erzeugt einen Dense- oder
Fully-connected Layer (manchmal auch gemm genannt) mit NumOut NumOut NumOut NumOut numOut num_out
Ausgabeneuronen, dessen Handle in DLLayerDense DLLayerDense DLLayerDense DLLayerDense DLLayerDense dllayer_dense zurückgegeben wird.
Der Parameter DLLayerInput DLLayerInput DLLayerInput DLLayerInput DLLayerInput dllayer_input bestimmt den zuführenden Eingabelayer
und erwartet das Layer-Handle als Wert.
Der Parameter LayerName LayerName LayerName LayerName layerName layer_name legt einen individuellen Layernamen fest.
Es ist zu beachten, dass beim Erstellen eines Modells mit
create_dl_model create_dl_model CreateDlModel CreateDlModel CreateDlModel create_dl_model jeder Layer des erstellten Netzes einen
eindeutigen Namen haben muss.
Die folgenden generischen Parameter GenParamName GenParamName GenParamName GenParamName genParamName gen_param_name und die
entsprechenden Werte GenParamValue GenParamValue GenParamValue GenParamValue genParamValue gen_param_value werden unterstützt:
'bias_filler' "bias_filler" "bias_filler" "bias_filler" "bias_filler" "bias_filler" :
Siehe create_dl_layer_convolution create_dl_layer_convolution CreateDlLayerConvolution CreateDlLayerConvolution CreateDlLayerConvolution create_dl_layer_convolution für eine detaillierte Erklärung
dieses Parameters und seiner Werte.
Werteliste: 'xavier' "xavier" "xavier" "xavier" "xavier" "xavier" , 'msra' "msra" "msra" "msra" "msra" "msra" ,
'const' "const" "const" "const" "const" "const" .
Default: 'const' "const" "const" "const" "const" "const"
'bias_filler_const_val' "bias_filler_const_val" "bias_filler_const_val" "bias_filler_const_val" "bias_filler_const_val" "bias_filler_const_val" :
Konstanter Wert, wenn
'bias_filler' "bias_filler" "bias_filler" "bias_filler" "bias_filler" "bias_filler" = 'const' "const" "const" "const" "const" "const" .
Default: 0
'bias_filler_variance_norm' "bias_filler_variance_norm" "bias_filler_variance_norm" "bias_filler_variance_norm" "bias_filler_variance_norm" "bias_filler_variance_norm" :
Siehe create_dl_layer_convolution create_dl_layer_convolution CreateDlLayerConvolution CreateDlLayerConvolution CreateDlLayerConvolution create_dl_layer_convolution für eine detaillierte Erklärung
dieses Parameters und seiner Werte.
Werteliste: 'norm_out' "norm_out" "norm_out" "norm_out" "norm_out" "norm_out" , 'norm_in' "norm_in" "norm_in" "norm_in" "norm_in" "norm_in" ,
'norm_average' "norm_average" "norm_average" "norm_average" "norm_average" "norm_average" oder konstanter Wert (in Kombination mit
'bias_filler' "bias_filler" "bias_filler" "bias_filler" "bias_filler" "bias_filler" = 'msra' "msra" "msra" "msra" "msra" "msra" ).
Default: 'norm_out' "norm_out" "norm_out" "norm_out" "norm_out" "norm_out"
'bias_term' "bias_term" "bias_term" "bias_term" "bias_term" "bias_term" :
Bestimmt, ob der erzeugte Layer
DLLayerDense DLLayerDense DLLayerDense DLLayerDense DLLayerDense dllayer_dense einen Bias-Term hat ('true' "true" "true" "true" "true" "true" ) oder nicht
('false' "false" "false" "false" "false" "false" ).
Default: 'true' "true" "true" "true" "true" "true"
'is_inference_output' "is_inference_output" "is_inference_output" "is_inference_output" "is_inference_output" "is_inference_output" :
Bestimmt, ob apply_dl_model apply_dl_model ApplyDlModel ApplyDlModel ApplyDlModel apply_dl_model die Ausgabe dieses Layers im
Dictionary DLResultBatch DLResultBatch DLResultBatch DLResultBatch DLResultBatch dlresult_batch zurückgibt, auch ohne den
Layer in Outputs Outputs Outputs Outputs outputs outputs anzugeben ('true' "true" "true" "true" "true" "true" ), oder
nur falls er angegeben wird ('false' "false" "false" "false" "false" "false" ).
Default: 'false' "false" "false" "false" "false" "false"
'learning_rate_multiplier' "learning_rate_multiplier" "learning_rate_multiplier" "learning_rate_multiplier" "learning_rate_multiplier" "learning_rate_multiplier" :
Multiplikator für die Lernrate
dieses Layers, die beim Training verwendet wird.
Wenn 'learning_rate_multiplier' "learning_rate_multiplier" "learning_rate_multiplier" "learning_rate_multiplier" "learning_rate_multiplier" "learning_rate_multiplier" auf 0.0 gesetzt ist, wird
der Layer beim Training übersprungen.
Default: 1.0
'learning_rate_multiplier_bias' "learning_rate_multiplier_bias" "learning_rate_multiplier_bias" "learning_rate_multiplier_bias" "learning_rate_multiplier_bias" "learning_rate_multiplier_bias" :
Multiplikator für die
Lernrate des Bias-Terms. Die gesamte Bias-Lernrate ist das
Produkt aus 'learning_rate_multiplier_bias' "learning_rate_multiplier_bias" "learning_rate_multiplier_bias" "learning_rate_multiplier_bias" "learning_rate_multiplier_bias" "learning_rate_multiplier_bias" und
'learning_rate_multiplier' "learning_rate_multiplier" "learning_rate_multiplier" "learning_rate_multiplier" "learning_rate_multiplier" "learning_rate_multiplier" .
Default: 1.0
'weight_filler' "weight_filler" "weight_filler" "weight_filler" "weight_filler" "weight_filler" :
Siehe create_dl_layer_convolution create_dl_layer_convolution CreateDlLayerConvolution CreateDlLayerConvolution CreateDlLayerConvolution create_dl_layer_convolution für eine detaillierte Erklärung
dieses Parameters und seiner Werte.
Werteliste: 'xavier' "xavier" "xavier" "xavier" "xavier" "xavier" , 'msra' "msra" "msra" "msra" "msra" "msra" ,
'const' "const" "const" "const" "const" "const" .
Default: 'xavier' "xavier" "xavier" "xavier" "xavier" "xavier"
'weight_filler_const_val' "weight_filler_const_val" "weight_filler_const_val" "weight_filler_const_val" "weight_filler_const_val" "weight_filler_const_val" :
Siehe create_dl_layer_convolution create_dl_layer_convolution CreateDlLayerConvolution CreateDlLayerConvolution CreateDlLayerConvolution create_dl_layer_convolution für eine detaillierte Erklärung
dieses Parameters und seiner Werte.
Default: 0.5
'weight_filler_variance_norm' "weight_filler_variance_norm" "weight_filler_variance_norm" "weight_filler_variance_norm" "weight_filler_variance_norm" "weight_filler_variance_norm" :
Siehe create_dl_layer_convolution create_dl_layer_convolution CreateDlLayerConvolution CreateDlLayerConvolution CreateDlLayerConvolution create_dl_layer_convolution für eine detaillierte Erklärung
dieses Parameters und seiner Werte.
Werteliste: 'norm_in' "norm_in" "norm_in" "norm_in" "norm_in" "norm_in" , 'norm_out' "norm_out" "norm_out" "norm_out" "norm_out" "norm_out" ,
'norm_average' "norm_average" "norm_average" "norm_average" "norm_average" "norm_average" oder konstanter Wert (in Kombination mit
'bias_filler' "bias_filler" "bias_filler" "bias_filler" "bias_filler" "bias_filler" = 'msra' "msra" "msra" "msra" "msra" "msra" ).
Default: 'norm_in' "norm_in" "norm_in" "norm_in" "norm_in" "norm_in"
Bestimmte Parameter von Layern, die mit create_dl_layer_dense create_dl_layer_dense CreateDlLayerDense CreateDlLayerDense CreateDlLayerDense create_dl_layer_dense
erzeugt wurden, können mit weiteren Operatoren gesetzt und abgerufen werden.
Die folgenden Tabellen geben einen Überblick, welche Parameter mit
set_dl_model_layer_param set_dl_model_layer_param SetDlModelLayerParam SetDlModelLayerParam SetDlModelLayerParam set_dl_model_layer_param gesetzt werden können und welche mit
get_dl_model_layer_param get_dl_model_layer_param GetDlModelLayerParam GetDlModelLayerParam GetDlModelLayerParam get_dl_model_layer_param oder get_dl_layer_param get_dl_layer_param GetDlLayerParam GetDlLayerParam GetDlLayerParam get_dl_layer_param ausgelesen
werden können. Es ist zu beachten, dass die Operatoren
set_dl_model_layer_param set_dl_model_layer_param SetDlModelLayerParam SetDlModelLayerParam SetDlModelLayerParam set_dl_model_layer_param und get_dl_model_layer_param get_dl_model_layer_param GetDlModelLayerParam GetDlModelLayerParam GetDlModelLayerParam get_dl_model_layer_param ein
Modell benötigen, das mit create_dl_model create_dl_model CreateDlModel CreateDlModel CreateDlModel create_dl_model erzeugt wurde.
Generische Layer-Parameter
set
get
'bias_filler' "bias_filler" "bias_filler" "bias_filler" "bias_filler" "bias_filler"
'bias_filler_const_val' "bias_filler_const_val" "bias_filler_const_val" "bias_filler_const_val" "bias_filler_const_val" "bias_filler_const_val"
'bias_filler_variance_norm' "bias_filler_variance_norm" "bias_filler_variance_norm" "bias_filler_variance_norm" "bias_filler_variance_norm" "bias_filler_variance_norm"
'bias_term' "bias_term" "bias_term" "bias_term" "bias_term" "bias_term"
'is_inference_output' "is_inference_output" "is_inference_output" "is_inference_output" "is_inference_output" "is_inference_output"
'learning_rate_multiplier' "learning_rate_multiplier" "learning_rate_multiplier" "learning_rate_multiplier" "learning_rate_multiplier" "learning_rate_multiplier"
'learning_rate_multiplier_bias' "learning_rate_multiplier_bias" "learning_rate_multiplier_bias" "learning_rate_multiplier_bias" "learning_rate_multiplier_bias" "learning_rate_multiplier_bias"
'num_trainable_params' "num_trainable_params" "num_trainable_params" "num_trainable_params" "num_trainable_params" "num_trainable_params"
'weight_filler' "weight_filler" "weight_filler" "weight_filler" "weight_filler" "weight_filler"
'weight_filler_const_val' "weight_filler_const_val" "weight_filler_const_val" "weight_filler_const_val" "weight_filler_const_val" "weight_filler_const_val"
'weight_filler_variance_norm' "weight_filler_variance_norm" "weight_filler_variance_norm" "weight_filler_variance_norm" "weight_filler_variance_norm" "weight_filler_variance_norm"
Ausführungsinformationen
Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
Wird ohne Parallelisierung verarbeitet.
Parameter
DLLayerInput DLLayerInput DLLayerInput DLLayerInput DLLayerInput dllayer_input (input_control) dl_layer → HDlLayer , HTuple HHandle HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Zuführender Layer.
LayerName LayerName LayerName LayerName layerName layer_name (input_control) string → HTuple str HTuple Htuple (string) (string ) (HString ) (char* )
Name des Ausgabelayers.
NumOut NumOut NumOut NumOut numOut num_out (input_control) number → HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Anzahl Ausgabeneuronen.
Defaultwert: 100
GenParamName GenParamName GenParamName GenParamName genParamName gen_param_name (input_control) attribute.name(-array) → HTuple MaybeSequence[str] HTuple Htuple (string) (string ) (HString ) (char* )
Namen der generischen Eingabeparameter.
Defaultwert: []
Werteliste: 'bias_filler' "bias_filler" "bias_filler" "bias_filler" "bias_filler" "bias_filler" , 'bias_filler_const_val' "bias_filler_const_val" "bias_filler_const_val" "bias_filler_const_val" "bias_filler_const_val" "bias_filler_const_val" , 'bias_filler_variance_norm' "bias_filler_variance_norm" "bias_filler_variance_norm" "bias_filler_variance_norm" "bias_filler_variance_norm" "bias_filler_variance_norm" , 'bias_term' "bias_term" "bias_term" "bias_term" "bias_term" "bias_term" , 'is_inference_output' "is_inference_output" "is_inference_output" "is_inference_output" "is_inference_output" "is_inference_output" , 'learning_rate_multiplier' "learning_rate_multiplier" "learning_rate_multiplier" "learning_rate_multiplier" "learning_rate_multiplier" "learning_rate_multiplier" , 'learning_rate_multiplier_bias' "learning_rate_multiplier_bias" "learning_rate_multiplier_bias" "learning_rate_multiplier_bias" "learning_rate_multiplier_bias" "learning_rate_multiplier_bias" , 'weight_filler' "weight_filler" "weight_filler" "weight_filler" "weight_filler" "weight_filler" , 'weight_filler_const_val' "weight_filler_const_val" "weight_filler_const_val" "weight_filler_const_val" "weight_filler_const_val" "weight_filler_const_val" , 'weight_filler_variance_norm' "weight_filler_variance_norm" "weight_filler_variance_norm" "weight_filler_variance_norm" "weight_filler_variance_norm" "weight_filler_variance_norm"
GenParamValue GenParamValue GenParamValue GenParamValue genParamValue gen_param_value (input_control) attribute.value(-array) → HTuple MaybeSequence[Union[int, float, str]] HTuple Htuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)
Werte der generischen Eingabeparameter.
Defaultwert: []
Wertevorschläge: 'xavier' "xavier" "xavier" "xavier" "xavier" "xavier" , 'msra' "msra" "msra" "msra" "msra" "msra" , 'const' "const" "const" "const" "const" "const" , 'nearest_neighbor' "nearest_neighbor" "nearest_neighbor" "nearest_neighbor" "nearest_neighbor" "nearest_neighbor" , 'bilinear' "bilinear" "bilinear" "bilinear" "bilinear" "bilinear" , 'norm_in' "norm_in" "norm_in" "norm_in" "norm_in" "norm_in" , 'norm_out' "norm_out" "norm_out" "norm_out" "norm_out" "norm_out" , 'norm_average' "norm_average" "norm_average" "norm_average" "norm_average" "norm_average" , 'true' "true" "true" "true" "true" "true" , 'false' "false" "false" "false" "false" "false" , 1.0, 0.9, 0.0
DLLayerDense DLLayerDense DLLayerDense DLLayerDense DLLayerDense dllayer_dense (output_control) dl_layer → HDlLayer , HTuple HHandle HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Dense-Layer.
Modul
Deep Learning Training