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

lrn_layer.h
1 /* file: lrn_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 the local response normalization layer.
21 //--
22 */
23 
24 #ifndef __LRN_LAYER_H__
25 #define __LRN_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/lrn/lrn_layer_types.h"
32 #include "algorithms/neural_networks/layers/lrn/lrn_layer_forward.h"
33 #include "algorithms/neural_networks/layers/lrn/lrn_layer_backward.h"
34 
35 namespace daal
36 {
37 namespace algorithms
38 {
39 namespace neural_networks
40 {
41 namespace layers
42 {
46 namespace lrn
47 {
48 namespace interface1
49 {
72 template<typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
73 class Batch : public LayerIface
74 {
75 public:
76  Parameter parameter;
82  DAAL_DEPRECATED Batch()
83  {
84  forward::Batch<algorithmFPType, method> *forwardLayerObject = new forward::Batch<algorithmFPType, method>(parameter);
85  backward::Batch<algorithmFPType, method> *backwardLayerObject = new backward::Batch<algorithmFPType, method>(parameter);
86 
87  LayerIface::forwardLayer = services::SharedPtr<forward::Batch<algorithmFPType, method> >(forwardLayerObject);
88  LayerIface::backwardLayer = services::SharedPtr<backward::Batch<algorithmFPType, method> >(backwardLayerObject);
89  };
90 };
92 } // namespace interface1
93 using interface1::Batch;
94 
95 } // namespace lrn
96 } // namespace layers
97 } // namespace neural_networks
98 } // namespace algorithms
99 } // namespace daal
100 #endif
daal::algorithms::neural_networks::layers::lrn::interface1::Batch
Provides methods for the local response normalization layer in the batch processing mode...
Definition: lrn_layer.h:73
daal::algorithms::neural_networks::layers::lrn::interface1::Batch::parameter
Parameter parameter
Definition: lrn_layer.h:76
daal::algorithms::neural_networks::layers::lrn::interface1::Parameter
Parameters for the local response normalization layer.
Definition: lrn_layer_types.h:83
daal_defines.h
daal::algorithms::neural_networks::layers::lrn::interface1::Batch::Batch
DAAL_DEPRECATED Batch()
Definition: lrn_layer.h:82

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