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

prelu_layer_types.h
1 /* file: prelu_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 parametric rectifier linear unit (prelu) layer
21 //--
22 */
23 
24 #ifndef __PRELU_LAYER_TYPES_H__
25 #define __PRELU_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 "services/daal_defines.h"
31 #include "algorithms/neural_networks/layers/layer_types.h"
32 
33 namespace daal
34 {
35 namespace algorithms
36 {
37 namespace neural_networks
38 {
39 namespace layers
40 {
50 namespace prelu
51 {
56 enum Method
57 {
58  defaultDense = 0,
59 };
60 
66 enum LayerDataId
67 {
68  auxData = layers::lastLayerInputLayout + 1,
69  auxWeights,
70  lastLayerDataId = auxWeights
71 };
72 
76 namespace interface1
77 {
78 
86 /* [Parameter source code] */
87 class DAAL_EXPORT Parameter: public layers::Parameter
88 {
89 public:
96  Parameter(const size_t _dataDimension = 0, const size_t _weightsDimension = 1);
97 
98  size_t dataDimension;
99  size_t weightsDimension;
107  DAAL_DEPRECATED_VIRTUAL virtual services::Status check() const;
108 };
109 /* [Parameter source code] */
110 
111 } // namespace interface1
112 using interface1::Parameter;
113 
114 } // namespace prelu
116 } // namespace layers
117 } // namespace neural_networks
118 } // namespace algorithm
119 } // namespace daal
120 #endif
daal::algorithms::neural_networks::layers::prelu::Method
Method
Definition: prelu_layer_types.h:56
daal::algorithms::neural_networks::layers::prelu::defaultDense
Definition: prelu_layer_types.h:58
daal::algorithms::neural_networks::layers::prelu::interface1::Parameter
Parameters for the prelu layer.
Definition: prelu_layer_types.h:87
daal_defines.h
daal::algorithms::neural_networks::layers::prelu::auxData
Definition: prelu_layer_types.h:68
daal::algorithms::neural_networks::layers::prelu::interface1::Parameter::dataDimension
size_t dataDimension
Definition: prelu_layer_types.h:98
daal::algorithms::neural_networks::layers::prelu::interface1::Parameter::weightsDimension
size_t weightsDimension
Definition: prelu_layer_types.h:99
daal::algorithms::neural_networks::layers::prelu::auxWeights
Definition: prelu_layer_types.h:69
daal::algorithms::neural_networks::layers::prelu::LayerDataId
LayerDataId
Identifiers of input objects for the backward prelu layer and results for the forward prelu layer...
Definition: prelu_layer_types.h:66

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