22 #ifndef __MAXIMUM_POOLING2D_LAYER_FORWARD_TYPES_H__
23 #define __MAXIMUM_POOLING2D_LAYER_FORWARD_TYPES_H__
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/tensor.h"
27 #include "data_management/data/homogen_tensor.h"
28 #include "data_management/data/homogen_numeric_table.h"
29 #include "services/daal_defines.h"
30 #include "algorithms/neural_networks/layers/pooling2d/maximum_pooling2d_layer_types.h"
31 #include "algorithms/neural_networks/layers/pooling2d/pooling2d_layer_forward_types.h"
37 namespace neural_networks
41 namespace maximum_pooling2d
64 class DAAL_EXPORT Input :
public pooling2d::forward::Input
72 class DAAL_EXPORT Result :
public pooling2d::forward::Result
75 DECLARE_SERIALIZABLE_CAST(Result);
80 using layers::forward::Result::get;
81 using layers::forward::Result::set;
91 template <
typename algorithmFPType>
92 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
99 data_management::TensorPtr
get(LayerDataId id)
const;
106 data_management::NumericTablePtr
get(LayerDataNumericTableId id)
const;
113 void set(LayerDataId
id,
const data_management::TensorPtr &ptr);
120 void set(LayerDataNumericTableId
id,
const data_management::NumericTablePtr &ptr);
130 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
134 template<
typename Archive,
bool onDeserialize>
135 services::Status serialImpl(Archive *arch)
137 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
140 typedef services::SharedPtr<Result> ResultPtr;
143 using interface1::Input;
144 using interface1::Result;
145 using interface1::ResultPtr;
daal
Definition: algorithm_base_common.h:31
daal::algorithms::neural_networks::layers::maximum_pooling2d::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the forward maximum 2D po...
Definition: maximum_pooling2d_layer_forward_types.h:72
daal::algorithms::neural_networks::layers::maximum_pooling2d::LayerDataNumericTableId
LayerDataNumericTableId
Identifiers of input numeric tables for the backward maximum 2D pooling layer and results for the for...
Definition: maximum_pooling2d_layer_types.h:71
daal::algorithms::neural_networks::layers::maximum_pooling2d::LayerDataId
LayerDataId
Identifiers of input tensors for the backward maximum 2D pooling layer and results for the forward ma...
Definition: maximum_pooling2d_layer_types.h:60