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

stochastic_pooling2d_layer_backward_types.h
1 /* file: stochastic_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 stochastic 2D pooling layer.
21 //--
22 */
23 
24 #ifndef __STOCHASTIC_POOLING2D_LAYER_BACKWARD_TYPES_H__
25 #define __STOCHASTIC_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/pooling2d/pooling2d_layer_backward_types.h"
33 #include "algorithms/neural_networks/layers/pooling2d/stochastic_pooling2d_layer_types.h"
34 
35 namespace daal
36 {
37 namespace algorithms
38 {
39 namespace neural_networks
40 {
41 namespace layers
42 {
43 namespace stochastic_pooling2d
44 {
54 namespace backward
55 {
56 
60 namespace interface1
61 {
62 
68 class DAAL_EXPORT Input : public pooling2d::backward::Input
69 {
70 public:
71  typedef 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 
98  DAAL_DEPRECATED data_management::TensorPtr get(LayerDataId id) const;
99 
106  DAAL_DEPRECATED data_management::NumericTablePtr get(LayerDataNumericTableId id) const;
107 
114  DAAL_DEPRECATED void set(LayerDataId id, const data_management::TensorPtr &ptr);
115 
122  DAAL_DEPRECATED void set(LayerDataNumericTableId id, const data_management::NumericTablePtr &ptr);
123 
132  DAAL_DEPRECATED services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
133 
134 protected:
135  /*
136  * \DAAL_DEPRECATED
137  */
138  DAAL_DEPRECATED_VIRTUAL virtual data_management::NumericTablePtr getAuxInputDimensions() const DAAL_C11_OVERRIDE;
139 };
140 
147 class DAAL_EXPORT Result : public pooling2d::backward::Result
148 {
149 public:
150  DECLARE_SERIALIZABLE_CAST(Result);
155  Result();
156  /*
157  * \DAAL_DEPRECATED
158  */
159  virtual ~Result() {}
160 
161  using layers::backward::Result::get;
162  using layers::backward::Result::set;
163 
173  template <typename algorithmFPType>
174  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
175 
185  DAAL_DEPRECATED services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
186 
187 protected:
192  template<typename Archive, bool onDeserialize>
193  services::Status serialImpl(Archive *arch)
194  {
195  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
196  }
197 };
198 typedef services::SharedPtr<Result> ResultPtr;
199 
200 } // namespace interface1
201 using interface1::Input;
202 using interface1::Result;
203 using interface1::ResultPtr;
204 } // namespace backward
206 } // namespace stochastic_pooling2d
207 } // namespace layers
208 } // namespace neural_networks
209 } // namespace algorithm
210 } // namespace daal
211 
212 #endif
daal::algorithms::neural_networks::layers::stochastic_pooling2d::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the backward stochastic 2...
Definition: stochastic_pooling2d_layer_backward_types.h:147
daal_defines.h
daal::algorithms::neural_networks::layers::stochastic_pooling2d::LayerDataId
LayerDataId
Identifiers of input tensors for the backward stochastic 2D pooling layer and results for the forward...
Definition: stochastic_pooling2d_layer_types.h:62
daal::algorithms::neural_networks::layers::stochastic_pooling2d::backward::interface1::Input
Input objects for the backward stochastic 2D pooling layer
Definition: stochastic_pooling2d_layer_backward_types.h:68
daal::algorithms::neural_networks::layers::stochastic_pooling2d::LayerDataNumericTableId
LayerDataNumericTableId
Identifiers of input numeric tables for the backward stochastic 2D pooling layer and results for the ...
Definition: stochastic_pooling2d_layer_types.h:72

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