48 #ifndef __NEURAL_NENTWORK_LOSS_LOGISTIC_CROSS_LAYER_FORWARD_TYPES_H__
49 #define __NEURAL_NENTWORK_LOSS_LOGISTIC_CROSS_LAYER_FORWARD_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_forward_types.h"
56 #include "algorithms/neural_networks/layers/loss/loss_layer_forward_types.h"
57 #include "algorithms/neural_networks/layers/loss/logistic_cross_layer_types.h"
63 namespace neural_networks
69 namespace logistic_cross
91 class DAAL_EXPORT Input :
public loss::forward::Input
94 typedef loss::forward::Input super;
99 Input(
const Input& other);
104 using loss::forward::Input::get;
109 using loss::forward::Input::set;
115 virtual const services::Collection<size_t> getWeightsSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
121 virtual const services::Collection<size_t> getBiasesSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
130 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
140 class DAAL_EXPORT Result :
public loss::forward::Result
143 DECLARE_SERIALIZABLE_CAST(Result);
146 virtual ~Result() {};
151 using loss::forward::Result::get;
156 using loss::forward::Result::set;
163 data_management::TensorPtr
get(LayerDataId id)
const;
170 void set(LayerDataId
id,
const data_management::TensorPtr &value);
180 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
190 template <
typename algorithmFPType>
191 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
197 virtual const services::Collection<size_t> getValueSize(
const services::Collection<size_t> &inputSize,
198 const daal::algorithms::Parameter *par,
const int method)
const DAAL_C11_OVERRIDE;
206 virtual services::Status setResultForBackward(
const daal::algorithms::Input *input) DAAL_C11_OVERRIDE;
210 template<
typename Archive,
bool onDeserialize>
211 services::Status serialImpl(Archive *arch)
213 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
216 typedef services::SharedPtr<Result> ResultPtr;
219 using interface1::Input;
220 using interface1::Result;
221 using interface1::ResultPtr;
daal
Definition: algorithm_base_common.h:57
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:88
daal::algorithms::neural_networks::layers::loss::logistic_cross::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the forward logistic cros...
Definition: logistic_cross_layer_forward_types.h:140
daal::algorithms::math::abs::value
Definition: abs_types.h:112