22 #ifndef __NEURAL_NENTWORK_LOSS_LOGISTIC_CROSS_LAYER_FORWARD_TYPES_H__
23 #define __NEURAL_NENTWORK_LOSS_LOGISTIC_CROSS_LAYER_FORWARD_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_forward_types.h"
30 #include "algorithms/neural_networks/layers/loss/loss_layer_forward_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::forward::Input
68 typedef loss::forward::Input super;
73 Input(
const Input& other);
78 using loss::forward::Input::get;
83 using loss::forward::Input::set;
89 virtual const services::Collection<size_t> getWeightsSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
95 virtual const services::Collection<size_t> getBiasesSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
104 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
114 class DAAL_EXPORT Result :
public loss::forward::Result
117 DECLARE_SERIALIZABLE_CAST(Result);
120 virtual ~Result() {};
125 using loss::forward::Result::get;
130 using loss::forward::Result::set;
137 data_management::TensorPtr
get(LayerDataId id)
const;
144 void set(LayerDataId
id,
const data_management::TensorPtr &value);
154 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
164 template <
typename algorithmFPType>
165 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
171 virtual const services::Collection<size_t> getValueSize(
const services::Collection<size_t> &inputSize,
172 const daal::algorithms::Parameter *par,
const int method)
const DAAL_C11_OVERRIDE;
180 virtual services::Status setResultForBackward(
const daal::algorithms::Input *input) DAAL_C11_OVERRIDE;
184 template<
typename Archive,
bool onDeserialize>
185 services::Status serialImpl(Archive *arch)
187 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
190 typedef services::SharedPtr<Result> ResultPtr;
193 using interface1::Input;
194 using interface1::Result;
195 using interface1::ResultPtr;
daal
Definition: algorithm_base_common.h:31
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::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:114
daal::algorithms::math::abs::value
Definition: abs_types.h:86