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

pooling1d_layer_backward_types.h
1 /* file: pooling1d_layer_backward_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 backward 1D pooling layer.
21 //--
22 */
23 
24 #ifndef __POOLING1D_LAYER_BACKWARD_TYPES_H__
25 #define __POOLING1D_LAYER_BACKWARD_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_backward_types.h"
32 #include "algorithms/neural_networks/layers/pooling1d/pooling1d_layer_types.h"
33 
34 namespace daal
35 {
36 namespace algorithms
37 {
38 namespace neural_networks
39 {
40 namespace layers
41 {
42 namespace pooling1d
43 {
53 namespace backward
54 {
55 
59 namespace interface1
60 {
66 class DAAL_EXPORT Input : public layers::backward::Input
67 {
68 public:
69  typedef layers::backward::Input super;
74  DAAL_DEPRECATED Input();
75 
80  DAAL_DEPRECATED Input(const Input& other);
81  /*
82  * \DAAL_DEPRECATED
83  */
84  virtual ~Input() {}
85 
91  DAAL_DEPRECATED_VIRTUAL virtual services::Collection<size_t> getGradientSize() const;
92 
93 protected:
94  /*
95  * \DAAL_DEPRECATED
96  */
97  DAAL_DEPRECATED_VIRTUAL virtual data_management::NumericTablePtr getAuxInputDimensions() const = 0;
98 
99  /*
100  * \DAAL_DEPRECATED
101  */
102  DAAL_DEPRECATED_VIRTUAL virtual services::Collection<size_t> getInputGradientSize(const pooling1d::Parameter *parameter) const;
103 
104  /*
105  * \DAAL_DEPRECATED
106  */
107  DAAL_DEPRECATED size_t computeInputDimension(size_t maskDim, size_t kernelSize, size_t padding, size_t stride) const;
108 };
109 
115 class DAAL_EXPORT Result : public layers::backward::Result
116 {
117 public:
122  DAAL_DEPRECATED Result();
123  /*
124  * \DAAL_DEPRECATED
125  */
126  virtual ~Result() {}
127 
137  template <typename algorithmFPType>
138  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
139 
149  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
150 };
151 
152 } // namespace interface1
153 using interface1::Input;
154 using interface1::Result;
155 } // namespace backward
158 } // namespace pooling1d
159 } // namespace layers
160 } // namespace neural_networks
161 } // namespace algorithm
162 } // namespace daal
163 
164 #endif
daal::algorithms::neural_networks::layers::pooling1d::backward::interface1::Input
Input objects for the backward 1D pooling layer
Definition: pooling1d_layer_backward_types.h:66
daal::algorithms::neural_networks::layers::pooling1d::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the backward 1D pooling l...
Definition: pooling1d_layer_backward_types.h:115
daal_defines.h

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