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

batch_normalization_layer.h
1 /* file: batch_normalization_layer.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 batch normalization layer.
21 //--
22 */
23 
24 #ifndef __BATCH_NORMALIZATION_LAYER_H__
25 #define __BATCH_NORMALIZATION_LAYER_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/tensor.h"
29 #include "services/daal_defines.h"
30 #include "algorithms/neural_networks/layers/layer.h"
31 #include "algorithms/neural_networks/layers/batch_normalization/batch_normalization_layer_types.h"
32 #include "algorithms/neural_networks/layers/batch_normalization/batch_normalization_layer_forward.h"
33 #include "algorithms/neural_networks/layers/batch_normalization/batch_normalization_layer_backward.h"
34 
35 
36 namespace daal
37 {
38 namespace algorithms
39 {
40 namespace neural_networks
41 {
42 namespace layers
43 {
47 namespace batch_normalization
48 {
52 namespace interface1
53 {
77 template<typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
78 class Batch : public LayerIface
79 {
80 public:
81 
82  Parameter parameter;
87  DAAL_DEPRECATED Batch()
88  {
89  forward::Batch<algorithmFPType, method> *forwardLayerObject = new forward::Batch<algorithmFPType, method>(parameter);
90  backward::Batch<algorithmFPType, method> *backwardLayerObject = new backward::Batch<algorithmFPType, method>(parameter);
91 
92  LayerIface::forwardLayer = services::SharedPtr<forward::Batch<algorithmFPType, method> >(forwardLayerObject);
93  LayerIface::backwardLayer = services::SharedPtr<backward::Batch<algorithmFPType, method> >(backwardLayerObject);
94  };
95 };
97 } // namespace interface1
98 using interface1::Batch;
99 
100 } // namespace batch_normalization
101 } // namespace layers
102 } // namespace neural_networks
103 } // namespace algorithms
104 } // namespace daal
105 
106 #endif
daal::algorithms::neural_networks::layers::batch_normalization::interface1::Parameter
Parameters for the forward and backward batch normalization layers.
Definition: batch_normalization_layer_types.h:86
daal::algorithms::neural_networks::layers::batch_normalization::interface1::Batch::Batch
DAAL_DEPRECATED Batch()
Definition: batch_normalization_layer.h:87
daal_defines.h
daal::algorithms::neural_networks::layers::batch_normalization::interface1::Batch
Provides methods for the batch normalization layer in the batch processing mode.
Definition: batch_normalization_layer.h:78
daal::algorithms::neural_networks::layers::batch_normalization::interface1::Batch::parameter
Parameter parameter
Definition: batch_normalization_layer.h:82

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