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

maximum_pooling1d_layer.h
1 /* file: maximum_pooling1d_layer.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 maximum 1D pooling layer.
21 //--
22 */
23 
24 #ifndef __MAXIMUM_POOLING1D_LAYER_H__
25 #define __MAXIMUM_POOLING1D_LAYER_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/tensor.h"
29 #include "services/daal_defines.h"
30 #include "algorithms/neural_networks/layers/layer.h"
31 #include "algorithms/neural_networks/layers/pooling1d/maximum_pooling1d_layer_types.h"
32 #include "algorithms/neural_networks/layers/pooling1d/maximum_pooling1d_layer_forward.h"
33 #include "algorithms/neural_networks/layers/pooling1d/maximum_pooling1d_layer_backward.h"
34 
35 
36 namespace daal
37 {
38 namespace algorithms
39 {
40 namespace neural_networks
41 {
42 namespace layers
43 {
47 namespace maximum_pooling1d
48 {
49 namespace interface1
50 {
74 template<typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
75 class Batch : public LayerIface
76 {
77 public:
78  Parameter parameter;
84  DAAL_DEPRECATED Batch(size_t nDimensions) : parameter(nDimensions - 1)
85  {
86  forward::Batch<algorithmFPType, method> *forwardLayerObject = new forward::Batch<algorithmFPType, method>(parameter);
87  backward::Batch<algorithmFPType, method> *backwardLayerObject = new backward::Batch<algorithmFPType, method>(parameter);
88 
89  LayerIface::forwardLayer = services::SharedPtr<forward::Batch<algorithmFPType, method> >(forwardLayerObject);
90  LayerIface::backwardLayer = services::SharedPtr<backward::Batch<algorithmFPType, method> >(backwardLayerObject);
91  }
92 };
94 } // namespace interface1
95 using interface1::Batch;
96 
97 } // namespace maximum_pooling1d
98 } // namespace layers
99 } // namespace neural_networks
100 } // namespace algorithms
101 } // namespace daal
102 
103 #endif
daal::algorithms::neural_networks::layers::maximum_pooling1d::interface1::Parameter
Parameters for the maximum 1D pooling layer.
Definition: maximum_pooling1d_layer_types.h:93
daal::algorithms::neural_networks::layers::maximum_pooling1d::interface1::Batch
Provides methods for the maximum 1D pooling layer in the batch processing mode.
Definition: maximum_pooling1d_layer.h:75
daal::algorithms::neural_networks::layers::maximum_pooling1d::interface1::Batch::Batch
DAAL_DEPRECATED Batch(size_t nDimensions)
Definition: maximum_pooling1d_layer.h:84
daal_defines.h
daal::algorithms::neural_networks::layers::maximum_pooling1d::interface1::Batch::parameter
Parameter parameter
Definition: maximum_pooling1d_layer.h:78

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