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

truncated_gaussian_initializer_types.h
1 /* file: truncated_gaussian_initializer_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 truncated gaussian initializer.
21 //--
22 */
23 
24 #ifndef __TRUNCATED_GAUSSIAN_INITIALIZER_TYPES_H__
25 #define __TRUNCATED_GAUSSIAN_INITIALIZER_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/initializers/initializer_types.h"
32 
33 namespace daal
34 {
35 namespace algorithms
36 {
37 namespace neural_networks
38 {
39 namespace initializers
40 {
50 namespace truncated_gaussian
51 {
56 enum Method
57 {
58  defaultDense = 0
59 };
60 
64 namespace interface1
65 {
66 
71 template<typename algorithmFPType>
72 class DAAL_EXPORT Parameter : public initializers::Parameter
73 {
74 public:
81  Parameter(double _mean = 0, double _sigma = 1.0, size_t _seed = 777);
82 
83  double mean;
84  double sigma;
85  algorithmFPType a;
86  algorithmFPType b;
87  size_t seed;
89  services::Status check() const DAAL_C11_OVERRIDE;
90 };
91 
92 } // namespace interface1
93 using interface1::Parameter;
94 
95 } // namespace truncated_gaussian
97 } // namespace initializers
98 } // namespace neural_networks
99 } // namespace algorithms
100 } // namespace daal
101 
102 #endif
daal::algorithms::neural_networks::initializers::truncated_gaussian::defaultDense
Definition: truncated_gaussian_initializer_types.h:58
daal::algorithms::neural_networks::initializers::truncated_gaussian::interface1::Parameter::a
algorithmFPType a
Definition: truncated_gaussian_initializer_types.h:85
daal::algorithms::neural_networks::initializers::truncated_gaussian::interface1::Parameter::mean
double mean
Definition: truncated_gaussian_initializer_types.h:83
daal::algorithms::neural_networks::initializers::truncated_gaussian::interface1::Parameter::b
algorithmFPType b
Definition: truncated_gaussian_initializer_types.h:86
daal::algorithms::neural_networks::initializers::truncated_gaussian::interface1::Parameter::sigma
double sigma
Definition: truncated_gaussian_initializer_types.h:84
daal_defines.h
daal::algorithms::neural_networks::initializers::truncated_gaussian::interface1::Parameter
truncated gaussian initializer parameters
Definition: truncated_gaussian_initializer_types.h:72
daal::algorithms::neural_networks::initializers::truncated_gaussian::interface1::Parameter::seed
size_t seed
Definition: truncated_gaussian_initializer_types.h:87
daal::algorithms::neural_networks::initializers::truncated_gaussian::Method
Method
Definition: truncated_gaussian_initializer_types.h:56

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