48 #ifndef __SMOOTHRELU_LAYER_BACKWARD_TYPES_H__ 49 #define __SMOOTHRELU_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/smoothrelu/smoothrelu_layer_types.h" 62 namespace neural_networks
88 class DAAL_EXPORT Input :
public layers::backward::Input
91 typedef layers::backward::Input super;
96 Input(
const Input& other);
103 using layers::backward::Input::get;
108 using layers::backward::Input::set;
115 data_management::TensorPtr
get(LayerDataId id)
const;
122 void set(LayerDataId id,
const data_management::TensorPtr &value);
131 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
139 class DAAL_EXPORT Result :
public layers::backward::Result
142 DECLARE_SERIALIZABLE_CAST(Result);
146 virtual ~Result() {};
151 using layers::backward::Result::get;
156 using layers::backward::Result::set;
166 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
176 template <
typename algorithmFPType>
177 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
181 template<
typename Archive,
bool onDeserialize>
182 services::Status serialImpl(Archive *arch)
184 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
187 typedef services::SharedPtr<Result> ResultPtr;
190 using interface1::Input;
191 using interface1::Result;
192 using interface1::ResultPtr;
daal::services::interface1::Status
Class that holds the results of API calls. In case of API routine failure it contains the list of err...
Definition: error_handling.h:491
daal
Definition: algorithm_base_common.h:57
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:86
daal::algorithms::neural_networks::layers::backward::interface1::Result::get
data_management::TensorPtr get(ResultId id) const
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:139
daal::algorithms::interface1::Parameter
Base class to represent computation parameters. Algorithm-specific parameters are represented as deri...
Definition: algorithm_types.h:86
daal::services::interface1::SharedPtr
Shared pointer that retains shared ownership of an object through a pointer. Several SharedPtr object...
Definition: daal_shared_ptr.h:187
daal::algorithms::math::abs::value
Definition: abs_types.h:112
daal::algorithms::neural_networks::layers::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the layer algorithm...
Definition: layer_backward_types.h:224
daal::algorithms::neural_networks::layers::backward::interface1::Result::set
void set(ResultId id, const data_management::TensorPtr &ptr)