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

maximum_pooling1d_layer_forward_types.h
1 /* file: maximum_pooling1d_layer_forward_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 forward maximum 1D pooling layer.
21 //--
22 */
23 
24 #ifndef __MAXIMUM_POOLING1D_LAYER_FORWARD_TYPES_H__
25 #define __MAXIMUM_POOLING1D_LAYER_FORWARD_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/pooling1d/maximum_pooling1d_layer_types.h"
33 #include "algorithms/neural_networks/layers/pooling1d/pooling1d_layer_forward_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 forward
55 {
59 namespace interface1
60 {
66 class DAAL_EXPORT Input : public pooling1d::forward::Input
67 {};
68 
74 class DAAL_EXPORT Result : public pooling1d::forward::Result
75 {
76 public:
77  DECLARE_SERIALIZABLE_CAST(Result);
79  Result();
80  virtual ~Result() {}
81 
85  using layers::forward::Result::get;
86 
90  using layers::forward::Result::set;
91 
100  template <typename algorithmFPType>
101  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
102 
108  data_management::TensorPtr get(LayerDataId id) const;
109 
115  data_management::NumericTablePtr get(LayerDataNumericTableId id) const;
116 
122  void set(LayerDataId id, const data_management::TensorPtr &ptr);
123 
129  void set(LayerDataNumericTableId id, const data_management::NumericTablePtr &ptr);
130 
139  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
140 
141 protected:
143  template<typename Archive, bool onDeserialize>
144  services::Status serialImpl(Archive *arch)
145  {
146  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
147  }
148 };
149 typedef services::SharedPtr<Result> ResultPtr;
150 
151 } // namespace interface1
152 using interface1::Input;
153 using interface1::Result;
154 using interface1::ResultPtr;
155 
156 } // namespace forward
158 } // namespace maximum_pooling1d
159 } // namespace layers
160 } // namespace neural_networks
161 } // namespace algorithm
162 } // namespace daal
163 
164 #endif
daal::algorithms::neural_networks::layers::maximum_pooling1d::forward::interface1::Input
Input objects for the forward maximum 1D pooling layer See pooling1d::forward::Input ...
Definition: maximum_pooling1d_layer_forward_types.h:66
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::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the forward maximum 1D po...
Definition: maximum_pooling1d_layer_forward_types.h:74
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

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