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

spatial_pooling2d_layer_types.h
1 /* file: spatial_pooling2d_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 // Implementation of 2D spatial layer.
21 //--
22 */
23 
24 #ifndef __SPATIAL_POOLING2D_LAYER_TYPES_H__
25 #define __SPATIAL_POOLING2D_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 {
50 namespace spatial_pooling2d
51 {
55 namespace interface1
56 {
62 struct Indices
63 {
70  DAAL_DEPRECATED Indices(size_t first = 2, size_t second = 3) { size[0] = first; size[1] = second; }
71  size_t size[2];
72 };
73 
81 /* [Parameter source code] */
82 struct DAAL_EXPORT Parameter: public layers::Parameter
83 {
91  Parameter(size_t _pyramidHeight, size_t firstIndex, size_t secondIndex);
92 
93  size_t pyramidHeight;
94  Indices indices;
95 };
96 /* [Parameter source code] */
97 
98 } // interface1
99 using interface1::Parameter;
100 using interface1::Indices;
101 
102 } // namespace spatial_pooling2d
104 } // namespace layers
105 } // namespace neural_networks
106 } // namespace algorithm
107 } // namespace daal
108 
109 #endif
daal::algorithms::neural_networks::layers::spatial_pooling2d::interface1::Indices::Indices
DAAL_DEPRECATED Indices(size_t first=2, size_t second=3)
Definition: spatial_pooling2d_layer_types.h:70
daal::algorithms::neural_networks::layers::spatial_pooling2d::interface1::Parameter::pyramidHeight
size_t pyramidHeight
Definition: spatial_pooling2d_layer_types.h:93
daal_defines.h
daal::algorithms::neural_networks::layers::spatial_pooling2d::interface1::Parameter::indices
Indices indices
Definition: spatial_pooling2d_layer_types.h:94
daal::algorithms::neural_networks::layers::spatial_pooling2d::interface1::Indices
Data structure representing the indices of the two dimensions on which pooling is performed...
Definition: spatial_pooling2d_layer_types.h:62
daal::algorithms::neural_networks::layers::spatial_pooling2d::interface1::Parameter
Parameters for the forward and backward two-dimensional spatial layers.
Definition: spatial_pooling2d_layer_types.h:82

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