48 #ifndef __SPATIAL_POOLING2D_LAYER_FORWARD_TYPES_H__ 49 #define __SPATIAL_POOLING2D_LAYER_FORWARD_TYPES_H__ 51 #include "algorithms/algorithm.h" 52 #include "data_management/data/tensor.h" 53 #include "data_management/data/homogen_tensor.h" 54 #include "data_management/data/homogen_numeric_table.h" 55 #include "services/daal_defines.h" 56 #include "algorithms/neural_networks/layers/layer_forward_types.h" 57 #include "algorithms/neural_networks/layers/spatial_pooling2d/spatial_stochastic_pooling2d_layer_types.h" 63 namespace neural_networks
67 namespace spatial_pooling2d
89 class DAAL_EXPORT Input :
public layers::forward::Input
92 typedef layers::forward::Input super;
99 Input(
const Input& other);
103 using layers::forward::Input::get;
104 using layers::forward::Input::set;
110 virtual const services::Collection<size_t> getWeightsSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
116 virtual const services::Collection<size_t> getBiasesSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
125 services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
134 class DAAL_EXPORT Result :
public layers::forward::Result
141 using layers::forward::Result::get;
142 using layers::forward::Result::set;
148 virtual const services::Collection<size_t> getValueSize(
const services::Collection<size_t> &inputSize,
149 const daal::algorithms::Parameter *par,
const int method)
const DAAL_C11_OVERRIDE;
159 template <
typename algorithmFPType>
160 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
170 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
172 static services::Collection<size_t> computeValueDimensions(
const services::Collection<size_t> &inputDims,
const Parameter *param);
174 data_management::NumericTablePtr createAuxInputDimensions(
const services::Collection<size_t> &dataDims)
const;
178 using interface1::Input;
179 using interface1::Result;
daal::algorithms::neural_networks::layers::spatial_pooling2d::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the forward 2D spatial la...
Definition: spatial_pooling2d_layer_forward_types.h:134
daal::services::interface1::Status
Class that holds the results of API calls. In case of API routine failure it contains the list of err...
Definition: error_handling.h:491
daal
Definition: algorithm_base_common.h:57
daal::algorithms::neural_networks::layers::spatial_pooling2d::interface1::Parameter
Parameters for the forward and backward two-dimensional spatial layers.
Definition: spatial_pooling2d_layer_types.h:103
daal::algorithms::neural_networks::layers::interface1::Parameter
Definition: layer_types.h:110
daal::algorithms::neural_networks::layers::forward::interface1::Result::get
data_management::TensorPtr get(ResultId id) const
daal::algorithms::neural_networks::layers::forward::interface1::Result::set
void set(ResultId id, const data_management::TensorPtr &ptr)
daal::algorithms::interface1::Parameter
Base class to represent computation parameters. Algorithm-specific parameters are represented as deri...
Definition: algorithm_types.h:86
daal::algorithms::neural_networks::layers::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the layer algorithm...
Definition: layer_forward_types.h:241
daal::services::interface1::Collection
Class that implements functionality of the Collection container.
Definition: collection.h:69