22 #ifndef __LOSS_LAYER_FORWARD_TYPES_H__
23 #define __LOSS_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"
35 namespace neural_networks
58 data = layers::forward::data,
59 weights = layers::forward::weights,
60 biases = layers::forward::biases,
61 groundTruth = layers::forward::lastInputLayerDataId + 1,
62 lastInputId = groundTruth
73 class DAAL_EXPORT Input :
public layers::forward::Input
76 typedef layers::forward::Input super;
78 Input(
size_t nElements = lastInputId + 1);
83 using layers::forward::Input::get;
88 using layers::forward::Input::set;
95 data_management::TensorPtr
get(forward::InputId id)
const;
102 void set(InputId
id,
const data_management::TensorPtr &ptr);
108 virtual const services::Collection<size_t> getWeightsSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
114 virtual const services::Collection<size_t> getBiasesSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
124 class DAAL_EXPORT Result :
public layers::forward::Result
129 virtual ~Result() {};
134 using layers::forward::Result::get;
139 using layers::forward::Result::set;
149 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
159 template <
typename algorithmFPType>
160 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
166 virtual const services::Collection<size_t> getValueSize(
const services::Collection<size_t> &inputSize,
167 const daal::algorithms::Parameter *par,
const int method)
const DAAL_C11_OVERRIDE;
170 using interface1::Input;
171 using interface1::Result;
daal
Definition: algorithm_base_common.h:31
daal::algorithms::neural_networks::layers::loss::forward::groundTruth
Definition: loss_layer_forward_types.h:61
daal::algorithms::neural_networks::layers::loss::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the forward loss layer...
Definition: loss_layer_forward_types.h:124
daal::algorithms::neural_networks::layers::loss::forward::data
Definition: loss_layer_forward_types.h:58
daal::algorithms::neural_networks::layers::loss::forward::weights
Definition: loss_layer_forward_types.h:59
daal::algorithms::neural_networks::layers::loss::forward::InputId
InputId
Definition: loss_layer_forward_types.h:56
daal::algorithms::neural_networks::layers::forward::data
Definition: layer_forward_types.h:63