48 #ifndef __SPATIAL_MAXIMUM_POOLING2D_LAYER_H__
49 #define __SPATIAL_MAXIMUM_POOLING2D_LAYER_H__
51 #include "algorithms/algorithm.h"
52 #include "data_management/data/tensor.h"
53 #include "services/daal_defines.h"
54 #include "algorithms/neural_networks/layers/layer.h"
55 #include "algorithms/neural_networks/layers/spatial_pooling2d/spatial_maximum_pooling2d_layer_types.h"
56 #include "algorithms/neural_networks/layers/spatial_pooling2d/spatial_maximum_pooling2d_layer_forward.h"
57 #include "algorithms/neural_networks/layers/spatial_pooling2d/spatial_maximum_pooling2d_layer_backward.h"
64 namespace neural_networks
71 namespace spatial_maximum_pooling2d
99 template<
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
100 class Batch :
public LayerIface
110 Batch(
size_t pyramidHeight,
size_t nDimensions) : parameter(pyramidHeight, nDimensions - 2, nDimensions - 1)
112 forward::Batch<algorithmFPType, method> *forwardLayerObject =
new forward::Batch<algorithmFPType, method>(parameter);
113 backward::Batch<algorithmFPType, method> *backwardLayerObject =
new backward::Batch<algorithmFPType, method>(parameter);
115 LayerIface::forwardLayer = services::SharedPtr<forward::Batch<algorithmFPType, method> >(forwardLayerObject);
116 LayerIface::backwardLayer = services::SharedPtr<backward::Batch<algorithmFPType, method> >(backwardLayerObject);
121 using interface1::Batch;
daal::algorithms::neural_networks::layers::spatial_maximum_pooling2d::interface1::Batch
Provides methods for the spatial pyramid maximum 2D pooling layer in the batch processing mode...
Definition: spatial_maximum_pooling2d_layer.h:100
daal
Definition: algorithm_base_common.h:57
daal::algorithms::neural_networks::layers::spatial_maximum_pooling2d::interface1::Batch::Batch
Batch(size_t pyramidHeight, size_t nDimensions)
Definition: spatial_maximum_pooling2d_layer.h:110
daal::algorithms::neural_networks::layers::spatial_maximum_pooling2d::interface1::Parameter
Parameters for the spatial pyramid maximum 2D pooling layer.
Definition: spatial_maximum_pooling2d_layer_types.h:115
daal::algorithms::neural_networks::layers::spatial_maximum_pooling2d::interface1::Batch::parameter
Parameter parameter
Definition: spatial_maximum_pooling2d_layer.h:103