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

dropout_layer_types.h
1 /* file: dropout_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 dropout layer types.
21 //--
22 */
23 
24 #ifndef __DROPOUT_LAYER_TYPES_H__
25 #define __DROPOUT_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 #include "algorithms/engines/mt19937/mt19937.h"
33 
34 namespace daal
35 {
36 namespace algorithms
37 {
38 namespace neural_networks
39 {
40 namespace layers
41 {
48 namespace dropout
49 {
54 enum Method
55 {
56  defaultDense = 0,
57 };
58 
63 enum LayerDataId
64 {
65  auxRetainMask = layers::lastLayerInputLayout + 1,
67  lastLayerDataId = auxRetainMask
68 };
69 
73 namespace interface1
74 {
75 
83 /* [Parameter source code] */
84 class DAAL_EXPORT Parameter: public layers::Parameter
85 {
86 public:
93  Parameter(const double retainRatio_ = 0.5, const size_t seed_ = 777);
94 
95  double retainRatio;
96  size_t seed;
97  engines::EnginePtr engine;
104  DAAL_DEPRECATED_VIRTUAL virtual services::Status check() const;
105 };
106 /* [Parameter source code] */
107 
108 } // namespace interface1
109 using interface1::Parameter;
110 
111 } // namespace dropout
113 } // namespace layers
114 } // namespace neural_networks
115 } // namespace algorithm
116 } // namespace daal
117 #endif
daal::algorithms::neural_networks::layers::dropout::interface1::Parameter::retainRatio
double retainRatio
Definition: dropout_layer_types.h:95
daal::algorithms::neural_networks::layers::dropout::interface1::Parameter::engine
engines::EnginePtr engine
Definition: dropout_layer_types.h:97
daal::algorithms::neural_networks::layers::dropout::defaultDense
Definition: dropout_layer_types.h:56
daal::algorithms::neural_networks::layers::dropout::interface1::Parameter
Parameters for the dropout layer.
Definition: dropout_layer_types.h:84
daal_defines.h
daal::algorithms::neural_networks::layers::dropout::interface1::Parameter::seed
size_t seed
Definition: dropout_layer_types.h:96
daal::algorithms::neural_networks::layers::dropout::Method
Method
Computation methods for the dropout layer.
Definition: dropout_layer_types.h:54
daal::algorithms::neural_networks::layers::dropout::auxRetainMask
Definition: dropout_layer_types.h:65
daal::algorithms::neural_networks::layers::dropout::LayerDataId
LayerDataId
Identifiers of input objects for the backward dropout layer and results for the forward dropout layer...
Definition: dropout_layer_types.h:63

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