C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

transposed_conv2d_layer_types.h
1 /* file: transposed_conv2d_layer_types.h */
2 /*******************************************************************************
3 * Copyright 2014-2020 Intel Corporation
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *******************************************************************************/
17 
18 /*
19 //++
20 // Two-dimensional (2D) transposed convolution layer parameter structure.
21 //--
22 */
23 
24 #ifndef __TRANSPOSED_CONV2D_LAYER_TYPES_H__
25 #define __TRANSPOSED_CONV2D_LAYER_TYPES_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/tensor.h"
29 #include "data_management/data/homogen_tensor.h"
30 #include "services/daal_defines.h"
31 #include "algorithms/neural_networks/layers/layer_types.h"
32 
33 namespace daal
34 {
35 namespace algorithms
36 {
37 namespace neural_networks
38 {
39 namespace layers
40 {
47 namespace transposed_conv2d
48 {
53 enum Method
54 {
55  defaultDense = 0,
56 };
57 
62 enum LayerDataId
63 {
64  auxData,
65  auxWeights,
66  lastLayerDataId = auxWeights
67 };
68 
74 struct KernelSizes
75 {
82  DAAL_DEPRECATED KernelSizes(size_t first, size_t second) { size[0] = first; size[1] = second; }
83  size_t size[2];
84 };
85 
91 struct Strides
92 {
99  DAAL_DEPRECATED Strides(size_t first, size_t second) { size[0] = first; size[1] = second; }
100  size_t size[2];
101 };
102 
109 struct Paddings
110 {
118  DAAL_DEPRECATED Paddings(int first, int second) { size[0] = first; size[1] = second; }
119  int size[2];
120 };
121 
127 struct Indices
128 {
135  DAAL_DEPRECATED Indices(size_t first, size_t second) { dims[0] = first; dims[1] = second; }
136  size_t dims[2];
137 };
138 
144 struct ValueSizes
145 {
152  DAAL_DEPRECATED ValueSizes(size_t first, size_t second) { size[0] = first; size[1] = second; }
153  size_t size[2];
154 };
155 
156 namespace interface1
157 {
163 class DAAL_EXPORT Parameter: public layers::Parameter
164 {
165 public:
170  Parameter();
171 
172  Indices indices;
173  size_t groupDimension;
174  KernelSizes kernelSizes;
175  Strides strides;
176  Paddings paddings;
177  size_t nKernels;
178  size_t nGroups;
179  ValueSizes valueSizes;
181 };
182 
183 } // namespace interface1
184 using interface1::Parameter;
185 
186 } // namespace transposed_conv2d
188 } // namespace layers
189 } // namespace neural_networks
190 } // namespace algorithms
191 } // namespace daal
192 #endif
daal::algorithms::neural_networks::layers::transposed_conv2d::auxWeights
Definition: transposed_conv2d_layer_types.h:65
daal::algorithms::neural_networks::layers::transposed_conv2d::auxData
Definition: transposed_conv2d_layer_types.h:64
daal::algorithms::neural_networks::layers::transposed_conv2d::Indices
Data structure representing the indices of the two dimensions on which 2D transposed convolution is p...
Definition: transposed_conv2d_layer_types.h:127
daal::algorithms::neural_networks::layers::transposed_conv2d::KernelSizes
Data structure representing the size of the two-dimensional kernel subtensor.
Definition: transposed_conv2d_layer_types.h:74
daal::algorithms::neural_networks::layers::transposed_conv2d::defaultDense
Definition: transposed_conv2d_layer_types.h:55
daal::algorithms::neural_networks::layers::transposed_conv2d::interface1::Parameter::nKernels
size_t nKernels
Definition: transposed_conv2d_layer_types.h:177
daal::algorithms::neural_networks::layers::transposed_conv2d::LayerDataId
LayerDataId
Definition: transposed_conv2d_layer_types.h:62
daal::algorithms::neural_networks::layers::transposed_conv2d::Paddings::Paddings
DAAL_DEPRECATED Paddings(int first, int second)
Definition: transposed_conv2d_layer_types.h:118
daal::algorithms::neural_networks::layers::transposed_conv2d::ValueSizes
Data structure representing the value sizes of the two dimensions on which 2D transposed convolution ...
Definition: transposed_conv2d_layer_types.h:144
daal::algorithms::neural_networks::layers::transposed_conv2d::interface1::Parameter::indices
Indices indices
Definition: transposed_conv2d_layer_types.h:172
daal::algorithms::neural_networks::layers::transposed_conv2d::interface1::Parameter::strides
Strides strides
Definition: transposed_conv2d_layer_types.h:175
daal_defines.h
daal::algorithms::neural_networks::layers::transposed_conv2d::ValueSizes::ValueSizes
DAAL_DEPRECATED ValueSizes(size_t first, size_t second)
Definition: transposed_conv2d_layer_types.h:152
daal::algorithms::neural_networks::layers::transposed_conv2d::interface1::Parameter::valueSizes
ValueSizes valueSizes
Definition: transposed_conv2d_layer_types.h:179
daal::algorithms::neural_networks::layers::transposed_conv2d::KernelSizes::KernelSizes
DAAL_DEPRECATED KernelSizes(size_t first, size_t second)
Definition: transposed_conv2d_layer_types.h:82
daal::algorithms::neural_networks::layers::transposed_conv2d::Method
Method
Definition: transposed_conv2d_layer_types.h:53
daal::algorithms::neural_networks::layers::transposed_conv2d::Indices::Indices
DAAL_DEPRECATED Indices(size_t first, size_t second)
Definition: transposed_conv2d_layer_types.h:135
daal::algorithms::neural_networks::layers::transposed_conv2d::interface1::Parameter::groupDimension
size_t groupDimension
Definition: transposed_conv2d_layer_types.h:173
daal::algorithms::neural_networks::layers::transposed_conv2d::Strides::Strides
DAAL_DEPRECATED Strides(size_t first, size_t second)
Definition: transposed_conv2d_layer_types.h:99
daal::algorithms::neural_networks::layers::transposed_conv2d::interface1::Parameter
2D transposed convolution layer parameters
Definition: transposed_conv2d_layer_types.h:163
daal::algorithms::neural_networks::layers::transposed_conv2d::interface1::Parameter::paddings
Paddings paddings
Definition: transposed_conv2d_layer_types.h:176
daal::algorithms::neural_networks::layers::transposed_conv2d::Strides
Data structure representing the intervals on which the subtensors for 2D transposed convolution are s...
Definition: transposed_conv2d_layer_types.h:91
daal::algorithms::neural_networks::layers::transposed_conv2d::Paddings
Data structure representing the number of data elements to implicitly add to each size of the two-dim...
Definition: transposed_conv2d_layer_types.h:109
daal::algorithms::neural_networks::layers::transposed_conv2d::interface1::Parameter::nGroups
size_t nGroups
Definition: transposed_conv2d_layer_types.h:178
daal::algorithms::neural_networks::layers::transposed_conv2d::interface1::Parameter::kernelSizes
KernelSizes kernelSizes
Definition: transposed_conv2d_layer_types.h:174

For more complete information about compiler optimizations, see our Optimization Notice.