22 #ifndef __NEURAL_NENTWORK_LOSS_LOGISTIC_CROSS_LAYER_BACKWARD_TYPES_H__
23 #define __NEURAL_NENTWORK_LOSS_LOGISTIC_CROSS_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/loss/loss_layer_backward_types.h"
31 #include "algorithms/neural_networks/layers/loss/logistic_cross_layer_types.h"
37 namespace neural_networks
43 namespace logistic_cross
65 class DAAL_EXPORT Input :
public loss::backward::Input
68 typedef loss::backward::Input super;
73 Input(
const Input& other);
80 using loss::backward::Input::get;
85 using loss::backward::Input::set;
92 data_management::TensorPtr
get(LayerDataId id)
const;
99 void set(LayerDataId
id,
const data_management::TensorPtr &value);
108 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
116 class DAAL_EXPORT Result :
public loss::backward::Result
119 DECLARE_SERIALIZABLE_CAST(Result);
123 virtual ~Result() {};
128 using loss::backward::Result::get;
133 using loss::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 *parameter,
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::loss::logistic_cross::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the backward logistic cro...
Definition: logistic_cross_layer_backward_types.h:116
daal::algorithms::neural_networks::layers::loss::logistic_cross::LayerDataId
LayerDataId
Identifiers of input objects for the backward logistic cross-entropy layer and results for the forwar...
Definition: logistic_cross_layer_types.h:62
daal::algorithms::math::abs::value
Definition: abs_types.h:86