create_dl_layer_depth_max🔗
説明🔗
create_dl_layer_depth_max — 深度最大層を作成する。
書式🔗
create_dl_layer_depth_max( dl_layer DLLayerInput, string LayerName, string DepthMaxMode, attribute.name GenParamName, attribute.value GenParamValue, out dl_layer DLLayerDepthMaxArg, out dl_layer DLLayerDepthMaxValue )
説明🔗
オペレーター create_dl_layer_depth_max は深度最大層を作成します。
パラメーター DLLayerInput は、入力とする層を決定し、層ハンドルを値として期待します。
DepthMaxModeに依存する2つの出力可能な層:
-
DLLayerDepthMaxArg: 'argmax'モードで深度最大層まで処理します。 -
DLLayerDepthMaxValue: 'value'モードで深度最大層まで処理します。
これらのパラメーターは、そのような出力層が要求された場合にのみ設定する必要があることに注意してください (DepthMaxModeを参照)。
パラメーターLayerNameは、DepthMaxModeに応じて出力層の名前を定義します:
-
'argmax':
DLLayerDepthMaxArgの名前。 -
'value':
DLLayerDepthMaxValueの名前。 -
'argmax_and_value':
DLLayerDepthMaxArgの名前に加え、 層DLLayerDepthMaxValueは、接尾辞'_value' が追加された同一の名前を受け取ります。
create_dl_model を使ってモデルを生成する場合、生成されたネットワークの
それぞれの層が特有の名前を持たなければならないことに注意してください。
モードDepthMaxModeは、どの深度最大値が実際に出力として返されるかを示します。
次の値がサポートされています。:
-
'argmax': 最大値の
depthインデックスがDLLayerDepthMaxArgに返されます。 -
'value': 最大値自体が
DLLayerDepthMaxValueに返されます。 -
'argmax_and_value': 出力層
DLLayerDepthMaxArgの最大値のdepthインデックスと 出力層DLLayerDepthMaxValueの最大値自体の両方が返されます。
以下の一般パラメータGenParamNameとそれに対応する値GenParamValueがサポートされます。
-
'is_inference_output':
apply_dl_modelがOutputsとしてこの層を指定していなくても、 ディクショナリDLResultBatchにこの層の出力を含めるか ('true')、 含めないか ('false') を設定します。初期値: 'false'
このオペレーターcreate_dl_layer_depth_maxを使って作成された層の特定のパラメーターは、
他のオペレーターによって値を設定及び取得することができます。
次の表は、どのパラメーターがset_dl_model_layer_paramを使用して設定でき、
どのパラメーターがget_dl_model_layer_paramまたはget_dl_layer_paramを使用して取得することができるか、
概要を示しています。
オペレーターset_dl_model_layer_param及び get_dl_model_layer_paramは、
create_dl_modelによって作成されたモデルを必要としますのでご注意ください。
| 層パラメーター | set |
get |
|---|---|---|
'input_layer' (DLLayerInput) |
x |
|
'mode' (DepthMaxMode) |
x |
x |
'name' (LayerName) |
x |
x |
'output_layer' (DLLayerDepthMaxArg and/or DLLayerDepthMaxValue) |
x |
|
| 'shape' | x |
|
| 'type' | x |
| 汎用層パラメーター | set |
get |
|---|---|---|
| 'is_inference_output' | x |
|
| 'num_trainable_params' | x |
実行情報🔗
実行情報
-
マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)
-
マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)
-
並列演算処理には未対応
パラメーター🔗
DLLayerInput (input_control) dl_layer → (handle)
入力として与えられる層
LayerName (input_control) string → (string)
出力層の名前
DepthMaxMode (input_control) string → (string)
戻り値の型を示すモード
初期値: 'argmax'
値のリスト: 'argmax', 'argmax_and_value', 'value'
GenParamName (input_control) attribute.name(-array) → (string)
汎用入力パラメーターの名前
初期値: []
値のリスト: 'is_inference_output'
GenParamValue (input_control) attribute.value(-array) → (string / integer / real)
汎用入力パラメーターの値
初期値: []
推奨値: 'true', 'false'
DLLayerDepthMaxArg (output_control) dl_layer(-array) → (handle)
オプション, 'argmax'モードの深度最大層
DLLayerDepthMaxValue (output_control) dl_layer(-array) → (handle)
オプション, 'value'モードの深度最大層
モジュール🔗
Deep Learning Professional