C++ API Reference for Intel® Data Analytics Acceleration Library 2019 Update 5

dropout_layer_types.h
1 /* file: dropout_layer_types.h */
2 /*******************************************************************************
3 * Copyright 2014-2019 Intel Corporation.
4 *
5 * This software and the related documents are Intel copyrighted materials, and
6 * your use of them is governed by the express license under which they were
7 * provided to you (License). Unless the License provides otherwise, you may not
8 * use, modify, copy, publish, distribute, disclose or transmit this software or
9 * the related documents without Intel's prior written permission.
10 *
11 * This software and the related documents are provided as is, with no express
12 * or implied warranties, other than those that are expressly stated in the
13 * License.
14 *******************************************************************************/
15 
16 /*
17 //++
18 // Implementation of the dropout layer types.
19 //--
20 */
21 
22 #ifndef __DROPOUT_LAYER_TYPES_H__
23 #define __DROPOUT_LAYER_TYPES_H__
24 
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/tensor.h"
27 #include "data_management/data/homogen_tensor.h"
28 #include "services/daal_defines.h"
29 #include "algorithms/neural_networks/layers/layer_types.h"
30 #include "algorithms/engines/mt19937/mt19937.h"
31 
32 namespace daal
33 {
34 namespace algorithms
35 {
36 namespace neural_networks
37 {
38 namespace layers
39 {
46 namespace dropout
47 {
52 enum Method
53 {
54  defaultDense = 0,
55 };
56 
61 enum LayerDataId
62 {
63  auxRetainMask = layers::lastLayerInputLayout + 1,
65  lastLayerDataId = auxRetainMask
66 };
67 
71 namespace interface1
72 {
73 
80 /* [Parameter source code] */
81 class DAAL_EXPORT Parameter: public layers::Parameter
82 {
83 public:
89  Parameter(const double retainRatio_ = 0.5, const size_t seed_ = 777);
90 
91  double retainRatio;
92  size_t seed;
93  engines::EnginePtr engine;
99  virtual services::Status check() const;
100 };
101 /* [Parameter source code] */
102 
103 } // namespace interface1
104 using interface1::Parameter;
105 
106 } // namespace dropout
108 } // namespace layers
109 } // namespace neural_networks
110 } // namespace algorithm
111 } // namespace daal
112 #endif
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:61
daal
Definition: algorithm_base_common.h:31
daal::algorithms::neural_networks::layers::dropout::Method
Method
Computation methods for the dropout layer.
Definition: dropout_layer_types.h:52
daal_defines.h
daal::algorithms::neural_networks::layers::dropout::interface1::Parameter::seed
size_t seed
Definition: dropout_layer_types.h:92
daal::algorithms::neural_networks::layers::dropout::auxRetainMask
Definition: dropout_layer_types.h:63
daal::algorithms::neural_networks::layers::dropout::interface1::Parameter::engine
engines::EnginePtr engine
Definition: dropout_layer_types.h:93
daal::algorithms::neural_networks::layers::dropout::interface1::Parameter
Parameters for the dropout layer.
Definition: dropout_layer_types.h:81
daal::algorithms::neural_networks::layers::dropout::defaultDense
Definition: dropout_layer_types.h:54
daal::algorithms::neural_networks::layers::dropout::interface1::Parameter::retainRatio
double retainRatio
Definition: dropout_layer_types.h:91

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