create_dl_layer_depth_max T_create_dl_layer_depth_max CreateDlLayerDepthMax CreateDlLayerDepthMax create_dl_layer_depth_max (Operator)
Name
create_dl_layer_depth_max T_create_dl_layer_depth_max CreateDlLayerDepthMax CreateDlLayerDepthMax create_dl_layer_depth_max
— Create a depth max layer.
Signature
void CreateDlLayerDepthMax (const HTuple& DLLayerInput , const HTuple& LayerName , const HTuple& DepthMaxMode , const HTuple& GenParamName , const HTuple& GenParamValue , HTuple* DLLayerDepthMaxArg , HTuple* DLLayerDepthMaxValue )
HDlLayerArray HDlLayer ::CreateDlLayerDepthMax (const HString& LayerName , const HString& DepthMaxMode , const HTuple& GenParamName , const HTuple& GenParamValue , HDlLayerArray* DLLayerDepthMaxValue ) const
HDlLayer HDlLayer ::CreateDlLayerDepthMax (const HString& LayerName , const HString& DepthMaxMode , const HString& GenParamName , const HString& GenParamValue , HDlLayer* DLLayerDepthMaxValue ) const
HDlLayer HDlLayer ::CreateDlLayerDepthMax (const char* LayerName , const char* DepthMaxMode , const char* GenParamName , const char* GenParamValue , HDlLayer* DLLayerDepthMaxValue ) const
HDlLayer HDlLayer ::CreateDlLayerDepthMax (const wchar_t* LayerName , const wchar_t* DepthMaxMode , const wchar_t* GenParamName , const wchar_t* GenParamValue , HDlLayer* DLLayerDepthMaxValue ) const
(Windows only)
static void HOperatorSet .CreateDlLayerDepthMax (HTuple DLLayerInput , HTuple layerName , HTuple depthMaxMode , HTuple genParamName , HTuple genParamValue , out HTuple DLLayerDepthMaxArg , out HTuple DLLayerDepthMaxValue )
HDlLayer[] HDlLayer .CreateDlLayerDepthMax (string layerName , string depthMaxMode , HTuple genParamName , HTuple genParamValue , out HDlLayer[] DLLayerDepthMaxValue )
HDlLayer HDlLayer .CreateDlLayerDepthMax (string layerName , string depthMaxMode , string genParamName , string genParamValue , out HDlLayer DLLayerDepthMaxValue )
def create_dl_layer_depth_max (dllayer_input : HHandle, layer_name : str, depth_max_mode : str, gen_param_name : MaybeSequence[str], gen_param_value : MaybeSequence[Union[int, float, str]]) -> Tuple[Sequence[HHandle], Sequence[HHandle]]
def create_dl_layer_depth_max_s (dllayer_input : HHandle, layer_name : str, depth_max_mode : str, gen_param_name : MaybeSequence[str], gen_param_value : MaybeSequence[Union[int, float, str]]) -> Tuple[HHandle, HHandle]
Description
The operator create_dl_layer_depth_max create_dl_layer_depth_max CreateDlLayerDepthMax CreateDlLayerDepthMax CreateDlLayerDepthMax create_dl_layer_depth_max
creates a depth max layer.
The parameter DLLayerInput DLLayerInput DLLayerInput DLLayerInput DLLayerInput dllayer_input
determines the feeding input layer and
expects the layer handle as value.
There are two possible output layers depending on DepthMaxMode DepthMaxMode DepthMaxMode DepthMaxMode depthMaxMode depth_max_mode
:
Note, these parameters only need to be set in case such an output layer
is requested (see DepthMaxMode DepthMaxMode DepthMaxMode DepthMaxMode depthMaxMode depth_max_mode
).
The parameter LayerName LayerName LayerName LayerName layerName layer_name
defines the name of the output layer(s)
depending on DepthMaxMode DepthMaxMode DepthMaxMode DepthMaxMode depthMaxMode depth_max_mode
:
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.
The mode DepthMaxMode DepthMaxMode DepthMaxMode DepthMaxMode depthMaxMode depth_max_mode
indicates which depth max value is
actually returned as output.
The following values are supported:
'argmax' "argmax" "argmax" "argmax" "argmax" "argmax" :
The depth
index of the maximal value is returned
in DLLayerDepthMaxArg DLLayerDepthMaxArg DLLayerDepthMaxArg DLLayerDepthMaxArg DLLayerDepthMaxArg dllayer_depth_max_arg
.
'value' "value" "value" "value" "value" "value" :
The maximal value itself is returned in DLLayerDepthMaxValue DLLayerDepthMaxValue DLLayerDepthMaxValue DLLayerDepthMaxValue DLLayerDepthMaxValue dllayer_depth_max_value
.
'argmax_and_value' "argmax_and_value" "argmax_and_value" "argmax_and_value" "argmax_and_value" "argmax_and_value" :
Both are returned, the depth
index of
the maximal value in the output layer DLLayerDepthMaxArg DLLayerDepthMaxArg DLLayerDepthMaxArg DLLayerDepthMaxArg DLLayerDepthMaxArg dllayer_depth_max_arg
, and
the maximal value itself in the output layer
DLLayerDepthMaxValue DLLayerDepthMaxValue DLLayerDepthMaxValue DLLayerDepthMaxValue DLLayerDepthMaxValue dllayer_depth_max_value
.
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_depth_max create_dl_layer_depth_max CreateDlLayerDepthMax CreateDlLayerDepthMax CreateDlLayerDepthMax create_dl_layer_depth_max
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"
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
DLLayerInput DLLayerInput DLLayerInput DLLayerInput DLLayerInput dllayer_input
(input_control) dl_layer →
HDlLayer , HTuple HHandle HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Feeding layer.
LayerName LayerName LayerName LayerName layerName layer_name
(input_control) string →
HTuple str HTuple Htuple (string) (string ) (HString ) (char* )
Name of the output layer.
DepthMaxMode DepthMaxMode DepthMaxMode DepthMaxMode depthMaxMode depth_max_mode
(input_control) string →
HTuple str HTuple Htuple (string) (string ) (HString ) (char* )
Mode to indicate type of return value.
Default value:
'argmax'
"argmax"
"argmax"
"argmax"
"argmax"
"argmax"
List of values: 'argmax' "argmax" "argmax" "argmax" "argmax" "argmax" , 'argmax_and_value' "argmax_and_value" "argmax_and_value" "argmax_and_value" "argmax_and_value" "argmax_and_value" , 'value' "value" "value" "value" "value" "value"
GenParamName GenParamName GenParamName GenParamName genParamName gen_param_name
(input_control) attribute.name(-array) →
HTuple MaybeSequence[str] HTuple Htuple (string) (string ) (HString ) (char* )
Generic input parameter names.
Default value: []
List of values: '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
(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)
Generic input parameter values.
Default value: []
Suggested values: 'true' "true" "true" "true" "true" "true" , 'false' "false" "false" "false" "false" "false"
DLLayerDepthMaxArg DLLayerDepthMaxArg DLLayerDepthMaxArg DLLayerDepthMaxArg DLLayerDepthMaxArg dllayer_depth_max_arg
(output_control) dl_layer(-array) →
HDlLayer , HTuple Sequence[HHandle] HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Optional, depth max layer with mode 'argmax' "argmax" "argmax" "argmax" "argmax" "argmax" .
DLLayerDepthMaxValue DLLayerDepthMaxValue DLLayerDepthMaxValue DLLayerDepthMaxValue DLLayerDepthMaxValue dllayer_depth_max_value
(output_control) dl_layer(-array) →
HDlLayer , HTuple Sequence[HHandle] HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Optional, depth max layer with mode 'value' "value" "value" "value" "value" "value" .
Module
Deep Learning Training