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

spatial_average_pooling2d_layer_backward_types.h
1 /* file: spatial_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 spatial pyramid average 2D pooling layer.
21 //--
22 */
23 
24 #ifndef __SPATIAL_AVERAGE_POOLING2D_LAYER_BACKWARD_TYPES_H__
25 #define __SPATIAL_AVERAGE_POOLING2D_LAYER_BACKWARD_TYPES_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/tensor.h"
29 #include "data_management/data/numeric_table.h"
30 #include "services/daal_defines.h"
31 #include "algorithms/neural_networks/layers/layer_backward_types.h"
32 #include "algorithms/neural_networks/layers/spatial_pooling2d/spatial_pooling2d_layer_backward_types.h"
33 #include "algorithms/neural_networks/layers/spatial_pooling2d/spatial_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 spatial_average_pooling2d
44 {
54 namespace backward
55 {
56 
60 namespace interface1
61 {
62 
68 class DAAL_EXPORT Input : public spatial_pooling2d::backward::Input
69 {
70 public:
71  typedef spatial_pooling2d::backward::Input super;
76  Input();
77 
82  Input(const Input& other);
83 
84  /*
85  * \DAAL_DEPRECATED
86  */
87  virtual ~Input() {}
88 
89  using layers::backward::Input::get;
90  using layers::backward::Input::set;
91 
97  data_management::NumericTablePtr get(LayerDataId id) const;
98 
104  void set(LayerDataId id, const data_management::NumericTablePtr &ptr);
105 
113  services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
114 
115 protected:
116  virtual data_management::NumericTablePtr getAuxInputDimensions() const DAAL_C11_OVERRIDE;
117 };
118 
125 class DAAL_EXPORT Result : public spatial_pooling2d::backward::Result
126 {
127 public:
128  DECLARE_SERIALIZABLE_CAST(Result);
133  Result();
134  /*
135  * \DAAL_DEPRECATED
136  */
137  virtual ~Result() {}
138 
139  using layers::backward::Result::get;
140  using layers::backward::Result::set;
141 
150  template <typename algorithmFPType>
151  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
152 
161  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
162 
163 protected:
165  template<typename Archive, bool onDeserialize>
166  services::Status serialImpl(Archive *arch)
167  {
168  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
169  }
170 };
171 typedef services::SharedPtr<Result> ResultPtr;
172 
173 } // namespace interface1
174 using interface1::Input;
175 using interface1::Result;
176 using interface1::ResultPtr;
177 } // namespace backward
179 } // namespace spatial_average_pooling2d
180 } // namespace layers
181 } // namespace neural_networks
182 } // namespace algorithm
183 } // namespace daal
184 
185 #endif
daal::algorithms::neural_networks::layers::spatial_average_pooling2d::LayerDataId
LayerDataId
Identifiers of input tensors for the backward spatial pyramid average 2D pooling layer and results fo...
Definition: spatial_average_pooling2d_layer_types.h:62
daal::algorithms::neural_networks::layers::spatial_average_pooling2d::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the backward spatial pyra...
Definition: spatial_average_pooling2d_layer_backward_types.h:125
daal_defines.h
daal::algorithms::neural_networks::layers::spatial_average_pooling2d::backward::interface1::Input
Input objects for the backward spatial pyramid average 2D pooling layer
Definition: spatial_average_pooling2d_layer_backward_types.h:68

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