48 #ifndef __LRN_LAYER_FORWARD_TYPES_H__
49 #define __LRN_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/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/lrn/lrn_layer_types.h"
63 namespace neural_networks
89 class DAAL_EXPORT Input :
public layers::forward::Input
92 typedef layers::forward::Input super;
97 Input(
const Input& other);
102 using layers::forward::Input::get;
107 using layers::forward::Input::set;
113 virtual const services::Collection<size_t> getWeightsSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
119 virtual const services::Collection<size_t> getBiasesSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
129 class DAAL_EXPORT Result :
public layers::forward::Result
132 DECLARE_SERIALIZABLE_CAST(Result);
135 virtual ~Result() {};
140 using layers::forward::Result::get;
145 using layers::forward::Result::set;
152 data_management::TensorPtr
get(LayerDataId id)
const;
159 void set(LayerDataId
id,
const data_management::TensorPtr &value);
169 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
175 virtual const services::Collection<size_t> getValueSize(
const services::Collection<size_t> &inputSize,
176 const daal::algorithms::Parameter *par,
const int method)
const DAAL_C11_OVERRIDE;
186 template <
typename algorithmFPType>
187 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
195 virtual services::Status setResultForBackward(
const daal::algorithms::Input *input) DAAL_C11_OVERRIDE;
199 template<
typename Archive,
bool onDeserialize>
200 services::Status serialImpl(Archive *arch)
202 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
205 typedef services::SharedPtr<Result> ResultPtr;
208 using interface1::Input;
209 using interface1::Result;
210 using interface1::ResultPtr;
daal
Definition: algorithm_base_common.h:57
daal::algorithms::math::abs::value
Definition: abs_types.h:112
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:129
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:87