22 #ifndef __LRN_LAYER_FORWARD_TYPES_H__
23 #define __LRN_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/numeric_table.h"
29 #include "services/daal_defines.h"
30 #include "algorithms/neural_networks/layers/layer_forward_types.h"
31 #include "algorithms/neural_networks/layers/lrn/lrn_layer_types.h"
37 namespace neural_networks
63 class DAAL_EXPORT Input :
public layers::forward::Input
66 typedef layers::forward::Input super;
71 Input(
const Input& other);
76 using layers::forward::Input::get;
81 using layers::forward::Input::set;
87 virtual const services::Collection<size_t> getWeightsSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
93 virtual const services::Collection<size_t> getBiasesSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
103 class DAAL_EXPORT Result :
public layers::forward::Result
106 DECLARE_SERIALIZABLE_CAST(Result);
109 virtual ~Result() {};
114 using layers::forward::Result::get;
119 using layers::forward::Result::set;
126 data_management::TensorPtr
get(LayerDataId id)
const;
133 void set(LayerDataId
id,
const data_management::TensorPtr &value);
143 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
149 virtual const services::Collection<size_t> getValueSize(
const services::Collection<size_t> &inputSize,
150 const daal::algorithms::Parameter *par,
const int method)
const DAAL_C11_OVERRIDE;
160 template <
typename algorithmFPType>
161 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
169 virtual services::Status setResultForBackward(
const daal::algorithms::Input *input) DAAL_C11_OVERRIDE;
173 template<
typename Archive,
bool onDeserialize>
174 services::Status serialImpl(Archive *arch)
176 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
179 typedef services::SharedPtr<Result> ResultPtr;
182 using interface1::Input;
183 using interface1::Result;
184 using interface1::ResultPtr;
daal
Definition: algorithm_base_common.h:31
daal::algorithms::math::abs::value
Definition: abs_types.h:86
daal::algorithms::neural_networks::layers::lrn::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the forward local respons...
Definition: lrn_layer_forward_types.h:103
daal::algorithms::neural_networks::layers::lrn::LayerDataId
LayerDataId
Identifiers of input objects for the backward stage and results for the forward stage of the local re...
Definition: lrn_layer_types.h:61