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

spatial_stochastic_pooling2d_layer_types.h
1 /* file: spatial_stochastic_pooling2d_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 spatial pyramid stochastic 2D pooling layer.
19 //--
20 */
21 
22 #ifndef __SPATIAL_STOCHASTIC_POOLING2D_LAYER_TYPES_H__
23 #define __SPATIAL_STOCHASTIC_POOLING2D_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/spatial_pooling2d/spatial_pooling2d_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 spatial_stochastic_pooling2d
47 {
52 enum Method
53 {
54  defaultDense = 0
55 };
56 
61 enum LayerDataId
62 {
63  auxSelectedIndices,
64  lastLayerDataId = auxSelectedIndices
65 };
66 
71 enum LayerDataNumericTableId
72 {
73  auxInputDimensions = lastLayerDataId + 1,
75  lastLayerDataNumericTableId = auxInputDimensions
76 };
77 
81 namespace interface1
82 {
89 /* [Parameter source code] */
90 struct DAAL_EXPORT Parameter: public spatial_pooling2d::Parameter
91 {
98  Parameter(size_t pyramidHeight, size_t firstIndex, size_t secondIndex) :
99  spatial_pooling2d::Parameter(pyramidHeight, firstIndex, secondIndex), seed(777), engine(engines::mt19937::Batch<>::create())
100  {}
101 
102  size_t seed;
103  engines::EnginePtr engine;
104 };
105 /* [Parameter source code] */
106 
107 } // interface1
108 using interface1::Parameter;
109 
110 } // namespace spatial_stochastic_pooling2d
112 } // namespace layers
113 } // namespace neural_networks
114 } // namespace algorithm
115 } // namespace daal
116 
117 #endif
daal
Definition: algorithm_base_common.h:31
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::interface1::Parameter::Parameter
Parameter(size_t pyramidHeight, size_t firstIndex, size_t secondIndex)
Definition: spatial_stochastic_pooling2d_layer_types.h:98
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::interface1::Parameter::engine
engines::EnginePtr engine
Definition: spatial_stochastic_pooling2d_layer_types.h:103
daal_defines.h
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::LayerDataId
LayerDataId
Identifiers of input tensors for the backward spatial pyramid stochastic 2D pooling layer and results...
Definition: spatial_stochastic_pooling2d_layer_types.h:61
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::interface1::Parameter::seed
size_t seed
Definition: spatial_stochastic_pooling2d_layer_types.h:102
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::defaultDense
Definition: spatial_stochastic_pooling2d_layer_types.h:54
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::Method
Method
Computation methods for the spatial pyramid stochastic 2D pooling layer.
Definition: spatial_stochastic_pooling2d_layer_types.h:52
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::interface1::Batch
Provides methods for the spatial pyramid stochastic 2D pooling layer in the batch processing mode...
Definition: spatial_stochastic_pooling2d_layer.h:74
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::interface1::Parameter
Parameters for the spatial pyramid stochastic 2D pooling layer.
Definition: spatial_stochastic_pooling2d_layer_types.h:90
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::auxSelectedIndices
Definition: spatial_stochastic_pooling2d_layer_types.h:63
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::LayerDataNumericTableId
LayerDataNumericTableId
Identifiers of input numeric tables for the backward spatial pyramid stochastic 2D pooling layer and ...
Definition: spatial_stochastic_pooling2d_layer_types.h:71
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::auxInputDimensions
Definition: spatial_stochastic_pooling2d_layer_types.h:73

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