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

locallyconnected2d_layer_types.h
1 /* file: locallyconnected2d_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) locally connected layer parameter structure.
21 //--
22 */
23 
24 #ifndef __LOCALLYCONNECTED2D_LAYER_TYPES_H__
25 #define __LOCALLYCONNECTED2D_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 locallyconnected2d
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 
139 namespace interface1
140 {
146 class DAAL_EXPORT Parameter: public layers::Parameter
147 {
148 public:
153  Parameter();
154 
155  Indices indices;
156  size_t groupDimension;
157  KernelSizes kernelSizes;
158  Strides strides;
159  Paddings paddings;
160  size_t nKernels;
161  size_t nGroups;
169  DAAL_DEPRECATED services::Status check() const;
170 };
171 
172 } // namespace interface1
173 using interface1::Parameter;
174 
175 } // namespace locallyconnected2d
177 } // namespace layers
178 } // namespace neural_networks
179 } // namespace algorithms
180 } // namespace daal
181 #endif
daal::algorithms::neural_networks::layers::locallyconnected2d::interface1::Parameter::nKernels
size_t nKernels
Definition: locallyconnected2d_layer_types.h:160
daal::algorithms::neural_networks::layers::locallyconnected2d::Strides
Data structure representing the intervals on which the subtensors for 2D locally connected are select...
Definition: locallyconnected2d_layer_types.h:91
daal::algorithms::neural_networks::layers::locallyconnected2d::interface1::Parameter::indices
Indices indices
Definition: locallyconnected2d_layer_types.h:155
daal::algorithms::neural_networks::layers::locallyconnected2d::interface1::Parameter::strides
Strides strides
Definition: locallyconnected2d_layer_types.h:158
daal::algorithms::neural_networks::layers::locallyconnected2d::interface1::Parameter::groupDimension
size_t groupDimension
Definition: locallyconnected2d_layer_types.h:156
daal_defines.h
daal::algorithms::neural_networks::layers::locallyconnected2d::auxWeights
Definition: locallyconnected2d_layer_types.h:65
daal::algorithms::neural_networks::layers::locallyconnected2d::Paddings::Paddings
DAAL_DEPRECATED Paddings(int first, int second)
Definition: locallyconnected2d_layer_types.h:118
daal::algorithms::neural_networks::layers::locallyconnected2d::Paddings
Data structure representing the number of data elements to implicitly add to each size of the two-dim...
Definition: locallyconnected2d_layer_types.h:109
daal::algorithms::neural_networks::layers::locallyconnected2d::KernelSizes::KernelSizes
DAAL_DEPRECATED KernelSizes(size_t first, size_t second)
Definition: locallyconnected2d_layer_types.h:82
daal::algorithms::neural_networks::layers::locallyconnected2d::KernelSizes
Data structure representing the size of the two-dimensional kernel subtensor.
Definition: locallyconnected2d_layer_types.h:74
daal::algorithms::neural_networks::layers::locallyconnected2d::Indices::Indices
DAAL_DEPRECATED Indices(size_t first, size_t second)
Definition: locallyconnected2d_layer_types.h:135
daal::algorithms::neural_networks::layers::locallyconnected2d::Strides::Strides
DAAL_DEPRECATED Strides(size_t first, size_t second)
Definition: locallyconnected2d_layer_types.h:99
daal::algorithms::neural_networks::layers::locallyconnected2d::auxData
Definition: locallyconnected2d_layer_types.h:64
daal::algorithms::neural_networks::layers::locallyconnected2d::interface1::Parameter::kernelSizes
KernelSizes kernelSizes
Definition: locallyconnected2d_layer_types.h:157
daal::algorithms::neural_networks::layers::locallyconnected2d::interface1::Parameter::paddings
Paddings paddings
Definition: locallyconnected2d_layer_types.h:159
daal::algorithms::neural_networks::layers::locallyconnected2d::interface1::Parameter
2D locally connected layer parameters
Definition: locallyconnected2d_layer_types.h:146
daal::algorithms::neural_networks::layers::locallyconnected2d::Method
Method
Definition: locallyconnected2d_layer_types.h:53
daal::algorithms::neural_networks::layers::locallyconnected2d::interface1::Parameter::nGroups
size_t nGroups
Definition: locallyconnected2d_layer_types.h:161
daal::algorithms::neural_networks::layers::locallyconnected2d::defaultDense
Definition: locallyconnected2d_layer_types.h:55
daal::algorithms::neural_networks::layers::locallyconnected2d::LayerDataId
LayerDataId
Definition: locallyconnected2d_layer_types.h:62
daal::algorithms::neural_networks::layers::locallyconnected2d::Indices
Data structure representing the indices of the two dimensions on which 2D locally connected is perfor...
Definition: locallyconnected2d_layer_types.h:127

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