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

batch_normalization_layer_backward_types.h
1 /* file: batch_normalization_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 the backward batch normalization layer.
21 //--
22 */
23 
24 #ifndef __BATCH_NORMALIZATION_LAYER_BACKWARD_TYPES_H__
25 #define __BATCH_NORMALIZATION_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/batch_normalization/batch_normalization_layer_types.h"
33 
34 namespace daal
35 {
36 namespace algorithms
37 {
38 namespace neural_networks
39 {
40 namespace layers
41 {
42 namespace batch_normalization
43 {
53 namespace backward
54 {
55 
59 namespace interface1
60 {
66 class DAAL_EXPORT Input : public layers::backward::Input
67 {
68 public:
69  typedef layers::backward::Input super;
70 
75  Input();
76 
81  Input(const Input& other);
82 
83  /*
84  * \DAAL_DEPRECATED
85  */
86  virtual ~Input() {}
87 
91  using layers::backward::Input::get;
92 
96  using layers::backward::Input::set;
97 
104  DAAL_DEPRECATED data_management::TensorPtr get(LayerDataId id) const;
105 
112  DAAL_DEPRECATED void set(LayerDataId id, const data_management::TensorPtr &ptr);
113 
122  DAAL_DEPRECATED services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
123 };
124 
131 class DAAL_EXPORT Result : public layers::backward::Result
132 {
133 public:
134  DECLARE_SERIALIZABLE_CAST(Result);
139  Result();
140  /*
141  * \DAAL_DEPRECATED
142  */
143  virtual ~Result() {}
144 
148  using layers::backward::Result::get;
149 
153  using layers::backward::Result::set;
154 
164  template <typename algorithmFPType>
165  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
166 
176  DAAL_DEPRECATED services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
177 
178 protected:
183  template<typename Archive, bool onDeserialize>
184  services::Status serialImpl(Archive *arch)
185  {
186  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
187  }
188 };
189 typedef services::SharedPtr<Result> ResultPtr;
190 
191 } // namespace interface1
192 using interface1::Input;
193 using interface1::Result;
194 using interface1::ResultPtr;
195 } // namespace backward
196 
198 } // namespace batch_normalization
199 } // namespace layers
200 } // namespace neural_networks
201 } // namespace algorithm
202 } // namespace daal
203 
204 #endif
daal::algorithms::neural_networks::layers::batch_normalization::LayerDataId
LayerDataId
Identifiers of input objects for the backward batch normalization layer and results for the forward b...
Definition: batch_normalization_layer_types.h:62
daal_defines.h
daal::algorithms::neural_networks::layers::batch_normalization::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the backward batch normal...
Definition: batch_normalization_layer_backward_types.h:131
daal::algorithms::neural_networks::layers::batch_normalization::backward::interface1::Input
Input objects for the backward batch normalization layer
Definition: batch_normalization_layer_backward_types.h:66

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