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

spatial_pooling2d_layer_backward_types.h
1 /* file: spatial_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 2D spatial layer.
21 //--
22 */
23 
24 #ifndef __SPATIAL_POOLING2D_LAYER_BACKWARD_TYPES_H__
25 #define __SPATIAL_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 "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_types.h"
33 #include "algorithms/neural_networks/layers/spatial_pooling2d/spatial_pooling2d_layer_forward_types.h"
34 
35 namespace daal
36 {
37 namespace algorithms
38 {
39 namespace neural_networks
40 {
41 namespace layers
42 {
43 namespace spatial_pooling2d
44 {
54 namespace backward
55 {
56 
60 namespace interface1
61 {
67 class DAAL_EXPORT Input : public layers::backward::Input
68 {
69 public:
70  typedef layers::backward::Input super;
75  DAAL_DEPRECATED Input();
76 
81  DAAL_DEPRECATED 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 
98  services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
99 
104  virtual services::Collection<size_t> getGradientSize() const;
105 
106 protected:
107  virtual data_management::NumericTablePtr getAuxInputDimensions() const = 0;
108 
109  size_t computeInputDimension(size_t maskDim, size_t kernelSize, size_t padding, size_t stride) const;
110 };
111 
118 class DAAL_EXPORT Result : public layers::backward::Result
119 {
120 public:
125  DAAL_DEPRECATED Result();
126  /*
127  * \DAAL_DEPRECATED
128  */
129  virtual ~Result() {}
130 
139  template <typename algorithmFPType>
140  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
141 
150  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
151 };
152 
153 } // namespace interface1
154 using interface1::Input;
155 using interface1::Result;
156 } // namespace backward
158 } // namespace spatial_pooling2d
159 } // namespace layers
160 } // namespace neural_networks
161 } // namespace algorithm
162 } // namespace daal
163 
164 #endif
daal::algorithms::neural_networks::layers::spatial_pooling2d::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the backward 2D spatial l...
Definition: spatial_pooling2d_layer_backward_types.h:118
daal_defines.h
daal::algorithms::neural_networks::layers::spatial_pooling2d::backward::interface1::Input
Input objects for the backward 2D spatial layer
Definition: spatial_pooling2d_layer_backward_types.h:67

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