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

maximum_pooling3d_layer.h
1 /* file: maximum_pooling3d_layer.h */
2 /*******************************************************************************
3 * Copyright 2014-2018 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 maximum 3D pooling layer.
19 //--
20 */
21 
22 #ifndef __MAXIMUM_POOLING3D_LAYER_H__
23 #define __MAXIMUM_POOLING3D_LAYER_H__
24 
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/tensor.h"
27 #include "services/daal_defines.h"
28 #include "algorithms/neural_networks/layers/layer.h"
29 #include "algorithms/neural_networks/layers/pooling3d/maximum_pooling3d_layer_types.h"
30 #include "algorithms/neural_networks/layers/pooling3d/maximum_pooling3d_layer_forward.h"
31 #include "algorithms/neural_networks/layers/pooling3d/maximum_pooling3d_layer_backward.h"
32 
33 
34 namespace daal
35 {
36 namespace algorithms
37 {
38 namespace neural_networks
39 {
40 namespace layers
41 {
45 namespace maximum_pooling3d
46 {
50 namespace interface1
51 {
73 template<typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
74 class Batch : public LayerIface
75 {
76 public:
81  Batch(size_t nDimensions) : parameter(nDimensions - 3, nDimensions - 2, nDimensions - 1)
82  {
83  forward::Batch<algorithmFPType, method> *forwardLayerObject = new forward::Batch<algorithmFPType, method>(parameter);
84  backward::Batch<algorithmFPType, method> *backwardLayerObject = new backward::Batch<algorithmFPType, method>(parameter);
85 
86  LayerIface::forwardLayer = services::SharedPtr<forward::Batch<algorithmFPType, method> >(forwardLayerObject);
87  LayerIface::backwardLayer = services::SharedPtr<backward::Batch<algorithmFPType, method> >(backwardLayerObject);
88  }
89 
90  Parameter parameter;
91 };
93 } // namespace interface1
94 using interface1::Batch;
95 
96 } // namespace maximum_pooling3d
97 } // namespace layers
98 } // namespace neural_networks
99 } // namespace algorithms
100 } // namespace daal
101 
102 #endif
daal
Definition: algorithm_base_common.h:31
daal::algorithms::neural_networks::layers::maximum_pooling3d::interface1::Batch::Batch
Batch(size_t nDimensions)
Definition: maximum_pooling3d_layer.h:81
daal_defines.h
daal::algorithms::neural_networks::layers::maximum_pooling3d::interface1::Batch::parameter
Parameter parameter
Definition: maximum_pooling3d_layer.h:90
daal::algorithms::neural_networks::layers::maximum_pooling3d::interface1::Batch
Provides methods for the maximum 3D pooling layer in the batch processing mode.
Definition: maximum_pooling3d_layer.h:74
daal::algorithms::neural_networks::layers::maximum_pooling3d::interface1::Parameter
Parameters for the maximum 3D pooling layer.
Definition: maximum_pooling3d_layer_types.h:89

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