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

lrn_layer_forward_types.h
1 /* file: lrn_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 the forward local response normalization layer types.
21 //--
22 */
23 
24 #ifndef __LRN_LAYER_FORWARD_TYPES_H__
25 #define __LRN_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/numeric_table.h"
31 #include "services/daal_defines.h"
32 #include "algorithms/neural_networks/layers/layer_forward_types.h"
33 #include "algorithms/neural_networks/layers/lrn/lrn_layer_types.h"
34 
35 namespace daal
36 {
37 namespace algorithms
38 {
39 namespace neural_networks
40 {
41 namespace layers
42 {
43 namespace lrn
44 {
54 namespace forward
55 {
59 namespace interface1
60 {
66 class DAAL_EXPORT Input : public layers::forward::Input
67 {
68 public:
69  typedef layers::forward::Input super;
73  DAAL_DEPRECATED Input();
74 
78  DAAL_DEPRECATED Input(const Input& other);
79 
83  using layers::forward::Input::get;
84 
88  using layers::forward::Input::set;
89 
95  DAAL_DEPRECATED_VIRTUAL virtual const services::Collection<size_t> getWeightsSizes(const layers::Parameter *parameter) const DAAL_C11_OVERRIDE;
96 
102  DAAL_DEPRECATED_VIRTUAL virtual const services::Collection<size_t> getBiasesSizes(const layers::Parameter *parameter) const DAAL_C11_OVERRIDE;
103 
104  /*
105  * \DAAL_DEPRECATED
106  */
107  virtual ~Input() {}
108 };
109 
116 class DAAL_EXPORT Result : public layers::forward::Result
117 {
118 public:
119  DECLARE_SERIALIZABLE_CAST(Result);
123  DAAL_DEPRECATED Result();
124  /*
125  * \DAAL_DEPRECATED
126  */
127  virtual ~Result() {};
128 
132  using layers::forward::Result::get;
133 
137  using layers::forward::Result::set;
138 
145  DAAL_DEPRECATED data_management::TensorPtr get(LayerDataId id) const;
146 
153  DAAL_DEPRECATED void set(LayerDataId id, const data_management::TensorPtr &value);
154 
164  DAAL_DEPRECATED services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *par, int method) const DAAL_C11_OVERRIDE;
165 
171  DAAL_DEPRECATED_VIRTUAL virtual const services::Collection<size_t> getValueSize(const services::Collection<size_t> &inputSize,
172  const daal::algorithms::Parameter *par, const int method) const DAAL_C11_OVERRIDE;
173 
183  template <typename algorithmFPType>
184  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
185 
193  virtual services::Status setResultForBackward(const daal::algorithms::Input *input) DAAL_C11_OVERRIDE;
194 
195 protected:
199  template<typename Archive, bool onDeserialize>
200  services::Status serialImpl(Archive *arch)
201  {
202  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
203  }
204 };
205 typedef services::SharedPtr<Result> ResultPtr;
206 
207 } // namespace interface1
208 using interface1::Input;
209 using interface1::Result;
210 using interface1::ResultPtr;
211 } // namespace forward
213 } // namespace lrn
214 } // namespace layers
215 } // namespace neural_networks
216 } // namespace algorithm
217 } // namespace daal
218 #endif
daal::algorithms::neural_networks::layers::lrn::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the forward local respons...
Definition: lrn_layer_forward_types.h:116
daal_defines.h
daal::algorithms::neural_networks::layers::lrn::forward::interface1::Input
Input parameters for the forward local response normalization layer
Definition: lrn_layer_forward_types.h:66
daal::algorithms::neural_networks::layers::lrn::LayerDataId
LayerDataId
Identifiers of input objects for the backward stage and results for the forward stage of the local re...
Definition: lrn_layer_types.h:63
daal::algorithms::math::abs::value
Definition: abs_types.h:88

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