create_dl_layer_depth_maxT_create_dl_layer_depth_maxCreateDlLayerDepthMaxCreateDlLayerDepthMaxcreate_dl_layer_depth_max (Operator)
create_dl_layer_depth_maxT_create_dl_layer_depth_maxCreateDlLayerDepthMaxCreateDlLayerDepthMaxcreate_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_maxcreate_dl_layer_depth_maxCreateDlLayerDepthMaxCreateDlLayerDepthMaxcreate_dl_layer_depth_max
creates a depth max layer.
The parameter DLLayerInputDLLayerInputDLLayerInputDLLayerInputdllayer_input
determines the feeding input layer and
expects the layer handle as value.
There are two possible output layers depending on DepthMaxModeDepthMaxModeDepthMaxModedepthMaxModedepth_max_mode
:
Note, these parameters only need to be set in case such an output layer
is requested (see DepthMaxModeDepthMaxModeDepthMaxModedepthMaxModedepth_max_mode
).
The parameter LayerNameLayerNameLayerNamelayerNamelayer_name
defines the name of the output layer(s)
depending on DepthMaxModeDepthMaxModeDepthMaxModedepthMaxModedepth_max_mode
:
Note that if creating a model using create_dl_modelcreate_dl_modelCreateDlModelCreateDlModelcreate_dl_model
each layer of the
created network must have a unique name.
The mode DepthMaxModeDepthMaxModeDepthMaxModedepthMaxModedepth_max_mode
indicates which depth max value is
actually returned as output.
The following values are supported:
- 'argmax'"argmax""argmax""argmax""argmax":
The depth
index of the maximal value is returned
in DLLayerDepthMaxArgDLLayerDepthMaxArgDLLayerDepthMaxArgDLLayerDepthMaxArgdllayer_depth_max_arg
.
- 'value'"value""value""value""value":
The maximal value itself is returned in DLLayerDepthMaxValueDLLayerDepthMaxValueDLLayerDepthMaxValueDLLayerDepthMaxValuedllayer_depth_max_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 DLLayerDepthMaxArgDLLayerDepthMaxArgDLLayerDepthMaxArgDLLayerDepthMaxArgdllayer_depth_max_arg
, and
the maximal value itself in the output layer
DLLayerDepthMaxValueDLLayerDepthMaxValueDLLayerDepthMaxValueDLLayerDepthMaxValuedllayer_depth_max_value
.
The following generic parameters GenParamNameGenParamNameGenParamNamegenParamNamegen_param_name
and the corresponding
values GenParamValueGenParamValueGenParamValuegenParamValuegen_param_value
are supported:
- 'is_inference_output'"is_inference_output""is_inference_output""is_inference_output""is_inference_output":
-
Determines whether apply_dl_modelapply_dl_modelApplyDlModelApplyDlModelapply_dl_model
will include the output of this
layer in the dictionary DLResultBatchDLResultBatchDLResultBatchDLResultBatchdlresult_batch
even without specifying this
layer in OutputsOutputsOutputsoutputsoutputs
('true'"true""true""true""true") or not ('false'"false""false""false""false").
Default:
'false'"false""false""false""false"
Certain parameters of layers created using this operator
create_dl_layer_depth_maxcreate_dl_layer_depth_maxCreateDlLayerDepthMaxCreateDlLayerDepthMaxcreate_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_paramset_dl_model_layer_paramSetDlModelLayerParamSetDlModelLayerParamset_dl_model_layer_param
and which ones can be retrieved
using get_dl_model_layer_paramget_dl_model_layer_paramGetDlModelLayerParamGetDlModelLayerParamget_dl_model_layer_param
or get_dl_layer_paramget_dl_layer_paramGetDlLayerParamGetDlLayerParamget_dl_layer_param
. Note, the
operators set_dl_model_layer_paramset_dl_model_layer_paramSetDlModelLayerParamSetDlModelLayerParamset_dl_model_layer_param
and get_dl_model_layer_paramget_dl_model_layer_paramGetDlModelLayerParamGetDlModelLayerParamget_dl_model_layer_param
require a model created by create_dl_modelcreate_dl_modelCreateDlModelCreateDlModelcreate_dl_model
.
Generic Layer Parameters |
set |
get |
'is_inference_output'"is_inference_output""is_inference_output""is_inference_output""is_inference_output" |
|
x
|
'num_trainable_params'"num_trainable_params""num_trainable_params""num_trainable_params""num_trainable_params" |
|
x
|
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
DLLayerInputDLLayerInputDLLayerInputDLLayerInputdllayer_input
(input_control) dl_layer →
HDlLayer, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Feeding layer.
LayerNameLayerNameLayerNamelayerNamelayer_name
(input_control) string →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of the output layer.
DepthMaxModeDepthMaxModeDepthMaxModedepthMaxModedepth_max_mode
(input_control) string →
HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Mode to indicate type of return value.
Default:
'argmax'
"argmax"
"argmax"
"argmax"
"argmax"
List of values:
'argmax'"argmax""argmax""argmax""argmax", 'argmax_and_value'"argmax_and_value""argmax_and_value""argmax_and_value""argmax_and_value", 'value'"value""value""value""value"
GenParamNameGenParamNameGenParamNamegenParamNamegen_param_name
(input_control) attribute.name(-array) →
HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Generic input parameter names.
Default:
[]
List of values:
'is_inference_output'"is_inference_output""is_inference_output""is_inference_output""is_inference_output"
GenParamValueGenParamValueGenParamValuegenParamValuegen_param_value
(input_control) attribute.value(-array) →
HTupleMaybeSequence[Union[int, float, str]]HTupleHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double)
Generic input parameter values.
Default:
[]
Suggested values:
'true'"true""true""true""true", 'false'"false""false""false""false"
DLLayerDepthMaxArgDLLayerDepthMaxArgDLLayerDepthMaxArgDLLayerDepthMaxArgdllayer_depth_max_arg
(output_control) dl_layer(-array) →
HDlLayer, HTupleSequence[HHandle]HTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Optional, depth max layer with mode 'argmax'"argmax""argmax""argmax""argmax".
DLLayerDepthMaxValueDLLayerDepthMaxValueDLLayerDepthMaxValueDLLayerDepthMaxValuedllayer_depth_max_value
(output_control) dl_layer(-array) →
HDlLayer, HTupleSequence[HHandle]HTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Optional, depth max layer with mode 'value'"value""value""value""value".
Module
Deep Learning Professional