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

average_pooling2d_layer_backward_types.h
1 /* file: average_pooling2d_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 average 2D pooling layer.
21 //--
22 */
23 
24 #ifndef __AVERAGE_POOLING2D_LAYER_BACKWARD_TYPES_H__
25 #define __AVERAGE_POOLING2D_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 "data_management/data/homogen_numeric_table.h"
31 #include "services/daal_defines.h"
32 #include "algorithms/neural_networks/layers/pooling2d/pooling2d_layer_backward_types.h"
33 #include "algorithms/neural_networks/layers/pooling2d/average_pooling2d_layer_types.h"
34 
35 namespace daal
36 {
37 namespace algorithms
38 {
39 namespace neural_networks
40 {
41 namespace layers
42 {
43 namespace average_pooling2d
44 {
54 namespace backward
55 {
56 
60 namespace interface1
61 {
67 class DAAL_EXPORT Input : public pooling2d::backward::Input
68 {
69 public:
70  typedef pooling2d::backward::Input super;
75  Input();
76 
81  Input(const Input& other);
82 
83  /*
84  * \DAAL_DEPRECATED
85  */
86  virtual ~Input() {}
87 
88  using layers::backward::Input::get;
89  using layers::backward::Input::set;
90 
97  DAAL_DEPRECATED data_management::NumericTablePtr get(LayerDataId id) const;
98 
105  DAAL_DEPRECATED data_management::TensorPtr get(LayerDataTensorId id) const;
106 
113  DAAL_DEPRECATED void set(LayerDataId id, const data_management::NumericTablePtr &ptr);
114 
121  DAAL_DEPRECATED void set(LayerDataTensorId id, const data_management::TensorPtr &ptr);
122 
131  DAAL_DEPRECATED services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
132 
133 protected:
134  /*
135  * \DAAL_DEPRECATED
136  */
137  DAAL_DEPRECATED_VIRTUAL data_management::NumericTablePtr getAuxInputDimensions() const DAAL_C11_OVERRIDE;
138 };
139 
146 class DAAL_EXPORT Result : public pooling2d::backward::Result
147 {
148 public:
149  DECLARE_SERIALIZABLE_CAST(Result);
154  Result();
155  /*
156  * \DAAL_DEPRECATED
157  */
158  virtual ~Result() {}
159 
160  using layers::backward::Result::get;
161  using layers::backward::Result::set;
162 
172  template <typename algorithmFPType>
173  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
174 
184  DAAL_DEPRECATED services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
185 
186 protected:
191  template<typename Archive, bool onDeserialize>
192  services::Status serialImpl(Archive *arch)
193  {
194  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
195  }
196 };
197 typedef services::SharedPtr<Result> ResultPtr;
198 
199 } // namespace interface1
200 using interface1::Input;
201 using interface1::Result;
202 using interface1::ResultPtr;
203 } // namespace backward
205 } // namespace average_pooling2d
206 } // namespace layers
207 } // namespace neural_networks
208 } // namespace algorithm
209 } // namespace daal
210 
211 #endif
daal::algorithms::neural_networks::layers::average_pooling2d::LayerDataId
LayerDataId
Identifiers of input objects for the backward average 2D pooling layer and results for the forward av...
Definition: average_pooling2d_layer_types.h:62
daal_defines.h
daal::algorithms::neural_networks::layers::average_pooling2d::backward::interface1::Input
Input objects for the backward average 2D pooling layer
Definition: average_pooling2d_layer_backward_types.h:67
daal::algorithms::neural_networks::layers::average_pooling2d::LayerDataTensorId
LayerDataTensorId
Identifiers of input tensors for the backward average 2D pooling layer and results for the forward av...
Definition: average_pooling2d_layer_types.h:72
daal::algorithms::neural_networks::layers::average_pooling2d::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the backward average 2D p...
Definition: average_pooling2d_layer_backward_types.h:146

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