C++ API Reference for Intel® Data Analytics Acceleration Library 2019 Update 5

spatial_pooling2d_layer_types.h
1 /* file: spatial_pooling2d_layer_types.h */
2 /*******************************************************************************
3 * Copyright 2014-2019 Intel Corporation.
4 *
5 * This software and the related documents are Intel copyrighted materials, and
6 * your use of them is governed by the express license under which they were
7 * provided to you (License). Unless the License provides otherwise, you may not
8 * use, modify, copy, publish, distribute, disclose or transmit this software or
9 * the related documents without Intel's prior written permission.
10 *
11 * This software and the related documents are provided as is, with no express
12 * or implied warranties, other than those that are expressly stated in the
13 * License.
14 *******************************************************************************/
15 
16 /*
17 //++
18 // Implementation of 2D spatial layer.
19 //--
20 */
21 
22 #ifndef __SPATIAL_POOLING2D_LAYER_TYPES_H__
23 #define __SPATIAL_POOLING2D_LAYER_TYPES_H__
24 
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/tensor.h"
27 #include "data_management/data/homogen_tensor.h"
28 #include "services/daal_defines.h"
29 #include "algorithms/neural_networks/layers/layer_types.h"
30 
31 namespace daal
32 {
33 namespace algorithms
34 {
35 namespace neural_networks
36 {
37 namespace layers
38 {
48 namespace spatial_pooling2d
49 {
53 namespace interface1
54 {
59 struct Indices
60 {
66  Indices(size_t first = 2, size_t second = 3) { size[0] = first; size[1] = second; }
67  size_t size[2];
68 };
69 
76 /* [Parameter source code] */
77 struct DAAL_EXPORT Parameter: public layers::Parameter
78 {
85  Parameter(size_t _pyramidHeight, size_t firstIndex, size_t secondIndex);
86 
87  size_t pyramidHeight;
88  Indices indices;
89 };
90 /* [Parameter source code] */
91 
92 } // interface1
93 using interface1::Parameter;
94 using interface1::Indices;
95 
96 } // namespace spatial_pooling2d
98 } // namespace layers
99 } // namespace neural_networks
100 } // namespace algorithm
101 } // namespace daal
102 
103 #endif
daal::algorithms::neural_networks::layers::spatial_pooling2d::interface1::Parameter::pyramidHeight
size_t pyramidHeight
Definition: spatial_pooling2d_layer_types.h:87
daal
Definition: algorithm_base_common.h:31
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:77
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:59
daal_defines.h
daal::algorithms::neural_networks::layers::spatial_pooling2d::interface1::Parameter::indices
Indices indices
Definition: spatial_pooling2d_layer_types.h:88
daal::algorithms::neural_networks::layers::spatial_pooling2d::interface1::Indices::Indices
Indices(size_t first=2, size_t second=3)
Definition: spatial_pooling2d_layer_types.h:66

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