48 #ifndef __PRELU_LAYER_BACKWARD_TYPES_H__
49 #define __PRELU_LAYER_BACKWARD_TYPES_H__
51 #include "algorithms/algorithm.h"
52 #include "data_management/data/tensor.h"
53 #include "data_management/data/homogen_tensor.h"
54 #include "services/daal_defines.h"
55 #include "algorithms/neural_networks/layers/layer_backward_types.h"
56 #include "algorithms/neural_networks/layers/prelu/prelu_layer_types.h"
62 namespace neural_networks
91 class DAAL_EXPORT Input :
public layers::backward::Input
94 typedef layers::backward::Input super;
99 Input(
const Input& other);
106 using layers::backward::Input::get;
110 using layers::backward::Input::set;
117 data_management::TensorPtr
get(LayerDataId id)
const;
124 void set(LayerDataId
id,
const data_management::TensorPtr &value);
133 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
136 services::Collection<size_t> getAuxWeightsSizes(
const layers::Parameter *par)
const;
143 class DAAL_EXPORT Result :
public layers::backward::Result
146 DECLARE_SERIALIZABLE_CAST(Result);
150 virtual ~Result() {};
155 using layers::backward::Result::get;
159 using layers::backward::Result::set;
169 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
179 template <
typename algorithmFPType>
180 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
184 template<
typename Archive,
bool onDeserialize>
185 services::Status serialImpl(Archive *arch)
187 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
190 typedef services::SharedPtr<Result> ResultPtr;
193 using interface1::Input;
194 using interface1::Result;
195 using interface1::ResultPtr;
daal
Definition: algorithm_base_common.h:57
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:90
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:143
daal::algorithms::math::abs::value
Definition: abs_types.h:112