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

pooling2d_layer_forward_types.h
1 /* file: pooling2d_layer_forward_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 the forward 2D pooling layer types.
21 //--
22 */
23 
24 #ifndef __POOLING2D_LAYER_FORWARD_TYPES_H__
25 #define __POOLING2D_LAYER_FORWARD_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 "data_management/data/homogen_numeric_table.h"
31 #include "services/daal_defines.h"
32 #include "algorithms/neural_networks/layers/layer_forward_types.h"
33 #include "algorithms/neural_networks/layers/pooling2d/pooling2d_layer_types.h"
34 
35 namespace daal
36 {
37 namespace algorithms
38 {
39 namespace neural_networks
40 {
41 namespace layers
42 {
43 namespace pooling2d
44 {
54 namespace forward
55 {
59 namespace interface1
60 {
66 class DAAL_EXPORT Input : public layers::forward::Input
67 {
68 public:
69  typedef layers::forward::Input super;
74  Input();
75 
80  Input(const Input& other);
81 
82  virtual ~Input() {}
83 
89  DAAL_DEPRECATED_VIRTUAL virtual const services::Collection<size_t> getWeightsSizes(const layers::Parameter *parameter) const DAAL_C11_OVERRIDE;
90 
96  DAAL_DEPRECATED_VIRTUAL virtual const services::Collection<size_t> getBiasesSizes(const layers::Parameter *parameter) const DAAL_C11_OVERRIDE;
97 
106  DAAL_DEPRECATED services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
107 };
108 
109 
116 class DAAL_EXPORT Result : public layers::forward::Result
117 {
118 public:
123  DAAL_DEPRECATED Result();
124  /*
125  * \DAAL_DEPRECATED
126  */
127  virtual ~Result() {}
128 
134  DAAL_DEPRECATED_VIRTUAL virtual const services::Collection<size_t> getValueSize(const services::Collection<size_t> &inputSize,
135  const daal::algorithms::Parameter *par, const int method) const DAAL_C11_OVERRIDE;
145  template <typename algorithmFPType>
146  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
147 
157  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
158 
159 protected:
160  /*
161  * \DAAL_DEPRECATED
162  */
163  DAAL_DEPRECATED size_t computeValueDimension(size_t dataDim, size_t kernelSize, size_t padding, size_t stride) const;
164 
165  /*
166  * \DAAL_DEPRECATED
167  */
168  DAAL_DEPRECATED void computeValueDimensions(services::Collection<size_t> &dims, const Parameter *param) const;
169 
170  /*
171  * \DAAL_DEPRECATED
172  */
173  DAAL_DEPRECATED data_management::NumericTablePtr createAuxInputDimensions(const services::Collection<size_t> &dataDims) const;
174 };
175 
176 } // namespace interface1
177 using interface1::Input;
178 using interface1::Result;
179 
180 } // namespace forward
182 } // namespace pooling2d
183 } // namespace layers
184 } // namespace neural_networks
185 } // namespace algorithm
186 } // namespace daal
187 
188 #endif
daal_defines.h
daal::algorithms::neural_networks::layers::pooling2d::forward::interface1::Input
Input objects for the forward 2D pooling layer
Definition: pooling2d_layer_forward_types.h:66
daal::algorithms::neural_networks::layers::pooling2d::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the forward 2D pooling la...
Definition: pooling2d_layer_forward_types.h:116

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