22 #ifndef __PRELU_LAYER_BACKWARD_TYPES_H__
23 #define __PRELU_LAYER_BACKWARD_TYPES_H__
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/tensor.h"
27 #include "data_management/data/homogen_tensor.h"
28 #include "services/daal_defines.h"
29 #include "algorithms/neural_networks/layers/layer_backward_types.h"
30 #include "algorithms/neural_networks/layers/prelu/prelu_layer_types.h"
36 namespace neural_networks
65 class DAAL_EXPORT Input :
public layers::backward::Input
68 typedef layers::backward::Input super;
73 Input(
const Input& other);
80 using layers::backward::Input::get;
84 using layers::backward::Input::set;
91 data_management::TensorPtr
get(LayerDataId id)
const;
98 void set(LayerDataId
id,
const data_management::TensorPtr &value);
107 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
110 services::Collection<size_t> getAuxWeightsSizes(
const layers::Parameter *par)
const;
117 class DAAL_EXPORT Result :
public layers::backward::Result
120 DECLARE_SERIALIZABLE_CAST(Result);
124 virtual ~Result() {};
129 using layers::backward::Result::get;
133 using layers::backward::Result::set;
143 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
153 template <
typename algorithmFPType>
154 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
158 template<
typename Archive,
bool onDeserialize>
159 services::Status serialImpl(Archive *arch)
161 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
164 typedef services::SharedPtr<Result> ResultPtr;
167 using interface1::Input;
168 using interface1::Result;
169 using interface1::ResultPtr;
daal
Definition: algorithm_base_common.h:31
daal::algorithms::neural_networks::layers::prelu::LayerDataId
LayerDataId
Identifiers of input objects for the backward prelu layer and results for the forward prelu layer...
Definition: prelu_layer_types.h:64
daal::algorithms::neural_networks::layers::prelu::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the backward prelu layer...
Definition: prelu_layer_backward_types.h:117
daal::algorithms::math::abs::value
Definition: abs_types.h:86