22 #ifndef __SMOOTHRELU_LAYER_BACKWARD_TYPES_H__
23 #define __SMOOTHRELU_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/smoothrelu/smoothrelu_layer_types.h"
36 namespace neural_networks
62 class DAAL_EXPORT Input :
public layers::backward::Input
65 typedef layers::backward::Input super;
70 Input(
const Input& other);
77 using layers::backward::Input::get;
82 using layers::backward::Input::set;
89 data_management::TensorPtr
get(LayerDataId id)
const;
96 void set(LayerDataId
id,
const data_management::TensorPtr &value);
105 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
113 class DAAL_EXPORT Result :
public layers::backward::Result
116 DECLARE_SERIALIZABLE_CAST(Result);
120 virtual ~Result() {};
125 using layers::backward::Result::get;
130 using layers::backward::Result::set;
140 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
150 template <
typename algorithmFPType>
151 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
155 template<
typename Archive,
bool onDeserialize>
156 services::Status serialImpl(Archive *arch)
158 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
161 typedef services::SharedPtr<Result> ResultPtr;
164 using interface1::Input;
165 using interface1::Result;
166 using interface1::ResultPtr;
daal
Definition: algorithm_base_common.h:31
daal::algorithms::neural_networks::layers::smoothrelu::LayerDataId
LayerDataId
Identifiers of input objects for the backward smooth relu layer and results for the forward smooth re...
Definition: smoothrelu_layer_types.h:60
daal::algorithms::neural_networks::layers::smoothrelu::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the backward smooth relu ...
Definition: smoothrelu_layer_backward_types.h:113
daal::algorithms::math::abs::value
Definition: abs_types.h:86