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

spatial_stochastic_pooling2d_layer_types.h
1 /* file: spatial_stochastic_pooling2d_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 spatial pyramid stochastic 2D pooling layer.
21 //--
22 */
23 
24 #ifndef __SPATIAL_STOCHASTIC_POOLING2D_LAYER_TYPES_H__
25 #define __SPATIAL_STOCHASTIC_POOLING2D_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/spatial_pooling2d/spatial_pooling2d_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 spatial_stochastic_pooling2d
49 {
54 enum Method
55 {
56  defaultDense = 0
57 };
58 
63 enum LayerDataId
64 {
65  auxSelectedIndices,
66  lastLayerDataId = auxSelectedIndices
67 };
68 
73 enum LayerDataNumericTableId
74 {
75  auxInputDimensions = lastLayerDataId + 1,
77  lastLayerDataNumericTableId = auxInputDimensions
78 };
79 
83 namespace interface1
84 {
92 /* [Parameter source code] */
93 struct DAAL_EXPORT Parameter: public spatial_pooling2d::Parameter
94 {
102  Parameter(size_t pyramidHeight, size_t firstIndex, size_t secondIndex) :
103  spatial_pooling2d::Parameter(pyramidHeight, firstIndex, secondIndex), seed(777), engine(engines::mt19937::Batch<>::create())
104  {}
105 
106  size_t seed;
107  engines::EnginePtr engine;
108 };
109 /* [Parameter source code] */
110 
111 } // interface1
112 using interface1::Parameter;
113 
114 } // namespace spatial_stochastic_pooling2d
116 } // namespace layers
117 } // namespace neural_networks
118 } // namespace algorithm
119 } // namespace daal
120 
121 #endif
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:93
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::auxInputDimensions
Definition: spatial_stochastic_pooling2d_layer_types.h:75
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:73
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:54
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::interface1::Parameter::seed
size_t seed
Definition: spatial_stochastic_pooling2d_layer_types.h:106
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::defaultDense
Definition: spatial_stochastic_pooling2d_layer_types.h:56
daal_defines.h
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:78
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:102
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::auxSelectedIndices
Definition: spatial_stochastic_pooling2d_layer_types.h:65
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::interface1::Parameter::engine
engines::EnginePtr engine
Definition: spatial_stochastic_pooling2d_layer_types.h:107
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:63

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