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

lcn_layer_types.h
1 /* file: lcn_layer_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 local contrast normalization layer.
21 //--
22 */
23 
24 #ifndef __NEURAL_NETWORKS__LCN_LAYER_TYPES_H__
25 #define __NEURAL_NETWORKS__LCN_LAYER_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/layer_types.h"
33 
34 namespace daal
35 {
36 namespace algorithms
37 {
38 namespace neural_networks
39 {
40 namespace layers
41 {
51 namespace lcn
52 {
56 enum Method
57 {
58  defaultDense = 0,
59 };
60 
65 enum LayerDataId
66 {
67  auxCenteredData,
68  auxSigma,
69  auxC,
70  auxInvMax,
71  lastLayerDataId = auxInvMax
72 };
73 
78 struct Indices
79 {
86  DAAL_DEPRECATED Indices(size_t first, size_t second) { dims[0] = first; dims[1] = second; }
87  size_t dims[2];
88 };
89 
90 namespace interface1
91 {
97 class DAAL_EXPORT Parameter: public layers::Parameter
98 {
99 public:
104  Parameter();
105 
106  data_management::TensorPtr kernel;
107  data_management::NumericTablePtr sumDimension;
108  Indices indices;
109  double sigmaDegenerateCasesThreshold;
117  DAAL_DEPRECATED services::Status check() const DAAL_C11_OVERRIDE;
118 };
119 
120 } // namespace interface1
121 using interface1::Parameter;
122 
123 } // namespace lcn
125 } // namespace layers
126 } // namespace neural_networks
127 } // namespace algorithms
128 } // namespace daal
129 #endif
daal::algorithms::neural_networks::layers::lcn::interface1::Parameter::sumDimension
data_management::NumericTablePtr sumDimension
Definition: lcn_layer_types.h:107
daal::algorithms::neural_networks::layers::lcn::defaultDense
Definition: lcn_layer_types.h:58
daal::algorithms::neural_networks::layers::lcn::interface1::Parameter
local contrast normalization layer parameters
Definition: lcn_layer_types.h:97
daal_defines.h
daal::algorithms::neural_networks::layers::lcn::interface1::Parameter::sigmaDegenerateCasesThreshold
double sigmaDegenerateCasesThreshold
Definition: lcn_layer_types.h:109
daal::algorithms::neural_networks::layers::lcn::Indices::Indices
DAAL_DEPRECATED Indices(size_t first, size_t second)
Definition: lcn_layer_types.h:86
daal::algorithms::neural_networks::layers::lcn::Indices
Data structure representing the indices of the two dimensions on which local contrast normalization i...
Definition: lcn_layer_types.h:78
daal::algorithms::neural_networks::layers::lcn::Method
Method
Definition: lcn_layer_types.h:56
daal::algorithms::neural_networks::layers::lcn::LayerDataId
LayerDataId
Definition: lcn_layer_types.h:65
daal::algorithms::neural_networks::layers::lcn::interface1::Parameter::kernel
data_management::TensorPtr kernel
Definition: lcn_layer_types.h:106
daal::algorithms::neural_networks::layers::lcn::interface1::Parameter::indices
Indices indices
Definition: lcn_layer_types.h:108

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