48 #ifndef __RELU_LAYER_BACKWARD_TYPES_H__
49 #define __RELU_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/relu/relu_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;
111 using layers::backward::Input::set;
118 data_management::TensorPtr
get(LayerDataId id)
const;
125 void set(LayerDataId
id,
const data_management::TensorPtr &value);
134 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
141 class DAAL_EXPORT Result :
public layers::backward::Result
144 DECLARE_SERIALIZABLE_CAST(Result);
148 virtual ~Result() {};
153 using layers::backward::Result::get;
158 using layers::backward::Result::set;
168 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
178 template <
typename algorithmFPType>
179 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
183 template<
typename Archive,
bool onDeserialize>
184 services::Status serialImpl(Archive *arch)
186 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
189 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::relu::LayerDataId
LayerDataId
Identifiers of input objects for the backward relu layer and results for the forward relu layer...
Definition: relu_layer_types.h:90
daal::algorithms::neural_networks::layers::relu::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the backward relu layer...
Definition: relu_layer_backward_types.h:141
daal::algorithms::math::abs::value
Definition: abs_types.h:112