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

maximum_pooling1d_layer_backward_types.h
1 /* file: maximum_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 maximum 1D pooling layer.
21 //--
22 */
23 
24 #ifndef __MAXIMUM_POOLING1D_LAYER_BACKWARD_TYPES_H__
25 #define __MAXIMUM_POOLING1D_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/pooling1d/pooling1d_layer_backward_types.h"
33 #include "algorithms/neural_networks/layers/pooling1d/maximum_pooling1d_layer_types.h"
34 
35 namespace daal
36 {
37 namespace algorithms
38 {
39 namespace neural_networks
40 {
41 namespace layers
42 {
43 namespace maximum_pooling1d
44 {
54 namespace backward
55 {
56 namespace interface1
57 {
63 class DAAL_EXPORT Input : public pooling1d::backward::Input
64 {
65 public:
66  typedef pooling1d::backward::Input super;
71  Input();
72 
77  Input(const Input& other);
78 
79  virtual ~Input() {}
80 
85  using layers::backward::Input::get;
86 
91  using layers::backward::Input::set;
92 
99  DAAL_DEPRECATED data_management::TensorPtr get(LayerDataId id) const;
100 
107  DAAL_DEPRECATED data_management::NumericTablePtr get(LayerDataNumericTableId id) const;
108 
115  DAAL_DEPRECATED void set(LayerDataId id, const data_management::TensorPtr &ptr);
116 
123  DAAL_DEPRECATED void set(LayerDataNumericTableId id, const data_management::NumericTablePtr &ptr);
124 
133  DAAL_DEPRECATED services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
134 
135 protected:
136  /*
137  * \DAAL_DEPRECATED
138  */
139  DAAL_DEPRECATED_VIRTUAL virtual data_management::NumericTablePtr getAuxInputDimensions() const DAAL_C11_OVERRIDE;
140 };
141 
148 class DAAL_EXPORT Result : public pooling1d::backward::Result
149 {
150 public:
151  DECLARE_SERIALIZABLE_CAST(Result);
156  Result();
157  /*
158  * \DAAL_DEPRECATED
159  */
160  virtual ~Result() {};
161 
165  using layers::backward::Result::get;
166 
170  using layers::backward::Result::set;
171 
181  template <typename algorithmFPType>
182  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
183 
193  DAAL_DEPRECATED services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
194 
195 protected:
200  template<typename Archive, bool onDeserialize>
201  services::Status serialImpl(Archive *arch)
202  {
203  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
204  }
205 };
206 typedef services::SharedPtr<Result> ResultPtr;
207 
208 } // namespace interface1
209 using interface1::Input;
210 using interface1::Result;
211 using interface1::ResultPtr;
212 } // namespace backward
215 } // namespace maximum_pooling1d
216 } // namespace layers
217 } // namespace neural_networks
218 } // namespace algorithm
219 } // namespace daal
220 
221 #endif
daal::algorithms::neural_networks::layers::maximum_pooling1d::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the backward maximum 1D p...
Definition: maximum_pooling1d_layer_backward_types.h:148
daal_defines.h
daal::algorithms::neural_networks::layers::maximum_pooling1d::LayerDataNumericTableId
LayerDataNumericTableId
Identifiers of input numeric tables for the backward maximum 1D pooling layer and results for the for...
Definition: maximum_pooling1d_layer_types.h:72
daal::algorithms::neural_networks::layers::maximum_pooling1d::LayerDataId
LayerDataId
Identifiers of input tensors for the backward maximum 1D pooling layer and results for the forward ma...
Definition: maximum_pooling1d_layer_types.h:62
daal::algorithms::neural_networks::layers::maximum_pooling1d::backward::interface1::Input
Input objects for the backward maximum 1D pooling layer
Definition: maximum_pooling1d_layer_backward_types.h:63

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