24 #ifndef __SPATIAL_STOCHASTIC_POOLING2D_LAYER_BACKWARD_TYPES_H__
25 #define __SPATIAL_STOCHASTIC_POOLING2D_LAYER_BACKWARD_TYPES_H__
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/tensor.h"
29 #include "data_management/data/numeric_table.h"
30 #include "services/daal_defines.h"
31 #include "algorithms/neural_networks/layers/spatial_pooling2d/spatial_stochastic_pooling2d_layer_types.h"
32 #include "algorithms/neural_networks/layers/spatial_pooling2d/spatial_pooling2d_layer_backward_types.h"
38 namespace neural_networks
42 namespace spatial_stochastic_pooling2d
67 class DAAL_EXPORT Input :
public spatial_pooling2d::backward::Input
70 typedef spatial_pooling2d::backward::Input super;
81 Input(
const Input& other);
88 using layers::backward::Input::get;
89 using layers::backward::Input::set;
96 data_management::TensorPtr
get(LayerDataId id)
const;
103 data_management::NumericTablePtr
get(LayerDataNumericTableId id)
const;
110 void set(LayerDataId
id,
const data_management::TensorPtr &ptr);
117 void set(LayerDataNumericTableId
id,
const data_management::NumericTablePtr &ptr);
126 services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
128 virtual data_management::NumericTablePtr getAuxInputDimensions()
const DAAL_C11_OVERRIDE;
137 class DAAL_EXPORT Result :
public spatial_pooling2d::backward::Result
140 DECLARE_SERIALIZABLE_CAST(Result);
151 using layers::backward::Result::get;
152 using layers::backward::Result::set;
162 template <
typename algorithmFPType>
163 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
173 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
177 template<
typename Archive,
bool onDeserialize>
178 services::Status serialImpl(Archive *arch)
180 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
183 typedef services::SharedPtr<Result> ResultPtr;
186 using interface1::Input;
187 using interface1::Result;
188 using interface1::ResultPtr;
daal::algorithms::neural_networks::layers::spatial_stochastic_pooling2d::backward::interface1::Input
Input objects for the backward spatial pyramid stochastic 2D pooling layer
Definition: spatial_stochastic_pooling2d_layer_backward_types.h:67
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::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the backward spatial pyra...
Definition: spatial_stochastic_pooling2d_layer_backward_types.h:137
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