create_dl_layer_depth_to_space T_create_dl_layer_depth_to_space CreateDlLayerDepthToSpace CreateDlLayerDepthToSpace create_dl_layer_depth_to_space (Operator)
Name
create_dl_layer_depth_to_space T_create_dl_layer_depth_to_space CreateDlLayerDepthToSpace CreateDlLayerDepthToSpace create_dl_layer_depth_to_space
— Create a depth to space layer.
Signature
void CreateDlLayerDepthToSpace (const HTuple& DLLayerInput , const HTuple& LayerName , const HTuple& BlockSize , const HTuple& Mode , const HTuple& GenParamName , const HTuple& GenParamValue , HTuple* DLLayerDepthToSpace )
HDlLayer HDlLayer ::CreateDlLayerDepthToSpace (const HString& LayerName , Hlong BlockSize , const HString& Mode , const HTuple& GenParamName , const HTuple& GenParamValue ) const
HDlLayer HDlLayer ::CreateDlLayerDepthToSpace (const HString& LayerName , Hlong BlockSize , const HString& Mode , const HString& GenParamName , const HString& GenParamValue ) const
HDlLayer HDlLayer ::CreateDlLayerDepthToSpace (const char* LayerName , Hlong BlockSize , const char* Mode , const char* GenParamName , const char* GenParamValue ) const
HDlLayer HDlLayer ::CreateDlLayerDepthToSpace (const wchar_t* LayerName , Hlong BlockSize , const wchar_t* Mode , const wchar_t* GenParamName , const wchar_t* GenParamValue ) const
(
Windows only)
static void HOperatorSet .CreateDlLayerDepthToSpace (HTuple DLLayerInput , HTuple layerName , HTuple blockSize , HTuple mode , HTuple genParamName , HTuple genParamValue , out HTuple DLLayerDepthToSpace )
HDlLayer HDlLayer .CreateDlLayerDepthToSpace (string layerName , int blockSize , string mode , HTuple genParamName , HTuple genParamValue )
HDlLayer HDlLayer .CreateDlLayerDepthToSpace (string layerName , int blockSize , string mode , string genParamName , string genParamValue )
Description
The operator create_dl_layer_depth_to_space create_dl_layer_depth_to_space CreateDlLayerDepthToSpace CreateDlLayerDepthToSpace CreateDlLayerDepthToSpace create_dl_layer_depth_to_space
creates a depth to space
layer whose handle is returned in DLLayerDepthToSpace DLLayerDepthToSpace DLLayerDepthToSpace DLLayerDepthToSpace DLLayerDepthToSpace dllayer_depth_to_space
.
The parameter DLLayerInput DLLayerInput DLLayerInput DLLayerInput DLLayerInput dllayer_input
determines the feeding input layer
and expects the layer handle as value.
The parameter LayerName LayerName LayerName LayerName layerName layer_name
sets an individual layer name.
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.
This layer rearranges the elements of the feeding tensor of shape
to a tensor of shape
.
Thereby
can be considered an upscale factor, which is set with
BlockSize BlockSize BlockSize BlockSize blockSize block_size
.
The output element
is mapped from
the input element
.
With Mode Mode Mode Mode mode mode
the ordering in the output tensor is set. Currently only
the 'column_row_depth' "column_row_depth" "column_row_depth" "column_row_depth" "column_row_depth" "column_row_depth" order described above is available.
Certain parameters of layers created using this operator
create_dl_layer_depth_to_space create_dl_layer_depth_to_space CreateDlLayerDepthToSpace CreateDlLayerDepthToSpace CreateDlLayerDepthToSpace create_dl_layer_depth_to_space
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.
BlockSize BlockSize BlockSize BlockSize blockSize block_size
(input_control) number →
HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Block size (i.e., upscale factor).
Default:
3
Mode Mode Mode Mode mode mode
(input_control) string →
HTuple str HTuple Htuple (string) (string ) (HString ) (char* )
Ordering mode.
Default:
'column_row_depth'
"column_row_depth"
"column_row_depth"
"column_row_depth"
"column_row_depth"
"column_row_depth"
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:
[]
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:
[]
Suggested values:
'true' "true" "true" "true" "true" "true" , 'false' "false" "false" "false" "false" "false"
DLLayerDepthToSpace DLLayerDepthToSpace DLLayerDepthToSpace DLLayerDepthToSpace DLLayerDepthToSpace dllayer_depth_to_space
(output_control) dl_layer →
HDlLayer , HTuple HHandle HTuple Htuple (handle) (IntPtr ) (HHandle ) (handle )
Depth to space layer.
Example (HDevelop)
InputShape := [16, 16, 3]
Upscale := 2
*
create_dl_layer_input ('input', InputShape, [], [], DLLayerInput)
* Create a convolutional layer, that generates Upscale^2*NumChannel feature maps.
create_dl_layer_convolution (DLLayerInput, 'conv1', 3, 1, 1,\
Upscale * Upscale * InputShape[2],\
1, 'half_kernel_size', 'none',\
[], [], DLLayerConvolution)
* Use a depth to space layer to combine Upscale^2 feature maps to upscale.
create_dl_layer_depth_to_space (DLLayerConvolution, 'upscaled', Upscale,\
'column_row_depth',[], [],\
DLLayerDepthToSpace)
* The output shape of DLLayerDepthToSpace is now [16*Upscale, 16*Upscale, 3].
create_dl_model (DLLayerDepthToSpace, DLModel)
Possible Predecessors
create_dl_layer_input create_dl_layer_input CreateDlLayerInput CreateDlLayerInput CreateDlLayerInput create_dl_layer_input
,
create_dl_layer_concat create_dl_layer_concat CreateDlLayerConcat CreateDlLayerConcat CreateDlLayerConcat create_dl_layer_concat
,
create_dl_layer_reshape create_dl_layer_reshape CreateDlLayerReshape CreateDlLayerReshape CreateDlLayerReshape create_dl_layer_reshape
Possible Successors
create_dl_layer_convolution create_dl_layer_convolution CreateDlLayerConvolution CreateDlLayerConvolution CreateDlLayerConvolution create_dl_layer_convolution
,
create_dl_layer_dense create_dl_layer_dense CreateDlLayerDense CreateDlLayerDense CreateDlLayerDense create_dl_layer_dense
,
create_dl_layer_reshape create_dl_layer_reshape CreateDlLayerReshape CreateDlLayerReshape CreateDlLayerReshape create_dl_layer_reshape
See also
create_dl_layer_reshape create_dl_layer_reshape CreateDlLayerReshape CreateDlLayerReshape CreateDlLayerReshape create_dl_layer_reshape
Module
Deep Learning Training