24 #ifndef __STOCHASTIC_POOLING2D_LAYER_FORWARD_TYPES_H__
25 #define __STOCHASTIC_POOLING2D_LAYER_FORWARD_TYPES_H__
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/tensor.h"
29 #include "data_management/data/homogen_tensor.h"
30 #include "data_management/data/homogen_numeric_table.h"
31 #include "services/daal_defines.h"
32 #include "algorithms/neural_networks/layers/pooling2d/stochastic_pooling2d_layer_types.h"
33 #include "algorithms/neural_networks/layers/pooling2d/pooling2d_layer_forward_types.h"
39 namespace neural_networks
43 namespace stochastic_pooling2d
66 class DAAL_EXPORT Input :
public pooling2d::forward::Input
75 class DAAL_EXPORT Result :
public pooling2d::forward::Result
78 DECLARE_SERIALIZABLE_CAST(Result);
89 using layers::forward::Result::get;
90 using layers::forward::Result::set;
101 template <
typename algorithmFPType>
102 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
110 DAAL_DEPRECATED data_management::TensorPtr
get(LayerDataId id)
const;
118 DAAL_DEPRECATED data_management::NumericTablePtr
get(LayerDataNumericTableId id)
const;
126 DAAL_DEPRECATED
void set(LayerDataId
id,
const data_management::TensorPtr &ptr);
134 DAAL_DEPRECATED
void set(LayerDataNumericTableId
id,
const data_management::NumericTablePtr &ptr);
145 DAAL_DEPRECATED services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
152 template<
typename Archive,
bool onDeserialize>
153 services::Status serialImpl(Archive *arch)
155 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
158 typedef services::SharedPtr<Result> ResultPtr;
161 using interface1::Input;
162 using interface1::Result;
163 using interface1::ResultPtr;
daal::algorithms::neural_networks::layers::stochastic_pooling2d::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the forward stochastic 2D...
Definition: stochastic_pooling2d_layer_forward_types.h:75
daal::algorithms::neural_networks::layers::stochastic_pooling2d::forward::interface1::Input
Input objects for the forward stochastic 2D pooling layer See pooling2d::forward::Input ...
Definition: stochastic_pooling2d_layer_forward_types.h:66
daal::algorithms::neural_networks::layers::stochastic_pooling2d::LayerDataId
LayerDataId
Identifiers of input tensors for the backward stochastic 2D pooling layer and results for the forward...
Definition: stochastic_pooling2d_layer_types.h:62
daal::algorithms::neural_networks::layers::stochastic_pooling2d::LayerDataNumericTableId
LayerDataNumericTableId
Identifiers of input numeric tables for the backward stochastic 2D pooling layer and results for the ...
Definition: stochastic_pooling2d_layer_types.h:72