48 #ifndef __LOSS_LAYER_FORWARD_TYPES_H__
49 #define __LOSS_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"
61 namespace neural_networks
84 data = layers::forward::data,
85 weights = layers::forward::weights,
86 biases = layers::forward::biases,
87 groundTruth = layers::forward::lastInputLayerDataId + 1,
88 lastInputId = groundTruth
99 class DAAL_EXPORT Input :
public layers::forward::Input
102 typedef layers::forward::Input super;
104 Input(
size_t nElements = lastInputId + 1);
109 using layers::forward::Input::get;
114 using layers::forward::Input::set;
121 data_management::TensorPtr
get(forward::InputId id)
const;
128 void set(InputId
id,
const data_management::TensorPtr &ptr);
134 virtual const services::Collection<size_t> getWeightsSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
140 virtual const services::Collection<size_t> getBiasesSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
150 class DAAL_EXPORT Result :
public layers::forward::Result
155 virtual ~Result() {};
160 using layers::forward::Result::get;
165 using layers::forward::Result::set;
175 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
185 template <
typename algorithmFPType>
186 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
192 virtual const services::Collection<size_t> getValueSize(
const services::Collection<size_t> &inputSize,
193 const daal::algorithms::Parameter *par,
const int method)
const DAAL_C11_OVERRIDE;
196 using interface1::Input;
197 using interface1::Result;
daal
Definition: algorithm_base_common.h:57
daal::algorithms::neural_networks::layers::loss::forward::groundTruth
Definition: loss_layer_forward_types.h:87
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:150
daal::algorithms::neural_networks::layers::loss::forward::data
Definition: loss_layer_forward_types.h:84
daal::algorithms::neural_networks::layers::loss::forward::weights
Definition: loss_layer_forward_types.h:85
daal::algorithms::neural_networks::layers::loss::forward::InputId
InputId
Definition: loss_layer_forward_types.h:82
daal::algorithms::neural_networks::layers::forward::data
Definition: layer_forward_types.h:89