Skip to content

create_dl_layer_dropoutCreateDlLayerDropoutCreateDlLayerDropoutcreate_dl_layer_dropoutT_create_dl_layer_dropout🔗

説明🔗

create_dl_layer_dropoutCreateDlLayerDropoutCreateDlLayerDropoutcreate_dl_layer_dropoutT_create_dl_layer_dropout — DropOut層を作成する。

書式🔗

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 )

説明🔗

オペレーター create_dl_layer_dropoutCreateDlLayerDropout は、確率の値 Probabilityprobabilityprobability でDropOut層 を作成し、ハンドル DLLayerDropOutDLLayerDropOutdllayer_drop_outを返します。 パラメーター DLLayerInputDLLayerInputdllayer_input は、作成時に入力される層を決定し、層の ハンドルを値として期待します。 パラメーター LayerNamelayerNamelayer_name は個々の層名を設定します。 create_dl_modelCreateDlModel を使ってモデルを生成する場合、生成されたネットワークの それぞれの層が特有の名前を持たなければならないことに注意してください。

トレーニング中、 DLLayerInputDLLayerInputdllayer_input 内のアクティベーションは 確率の値Probabilityprobabilityprobabilityで0に設定されます。他のすべてのアクティベーションは (1 - Probabilityprobabilityprobability)で再スケーリングされます。

次の汎用パラメーター GenParamNamegenParamNamegen_param_name 及び対応する値 GenParamValuegenParamValuegen_param_value がサポートされています。

  • 'is_inference_output'"is_inference_output": オペレーター apply_dl_modelApplyDlModel がOutputsoutputsoutputs でこのレイヤを指定していない場合であっても、 ディクショナリ DLResultBatchDLResultBatchdlresult_batch に、この層の出力を含む('true'"true")か 含まない ('false'"false")かを決定します。

    初期値: 'false'"false"

このオペレーターcreate_dl_layer_dropoutCreateDlLayerDropoutを使って作成された層の特定のパラメーターは、 他のオペレーターによって値を設定及び取得することができます。 次の表に、set_dl_model_layer_paramSetDlModelLayerParamを使用して設定、 get_dl_model_layer_paramGetDlModelLayerParam または get_dl_layer_paramGetDlLayerParam を 使用して取得できるパラメーターの概要を示します。オペレーター set_dl_model_layer_paramSetDlModelLayerParam および get_dl_model_layer_paramGetDlModelLayerParam は、 create_dl_modelCreateDlModel によって作成 されたモデルが必要であることにご注意ください。

層パラメーター 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
汎用層パラメーター set get
'is_inference_output'"is_inference_output" x x
'num_trainable_params'"num_trainable_params" x

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

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

入力として与えられる層

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

アウトプット層名

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

確率の値

初期値: 0.50.5

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

汎用入力パラメーター名

初期値: [][]
値のリスト: '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)

汎用入力パラメーター値

初期値: [][]
推奨値: 'true', 'false'"true", "false"

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

DropOut層

モジュール🔗

Deep Learning Professional