24 #ifndef __LOSS_LAYER_FORWARD_TYPES_H__
25 #define __LOSS_LAYER_FORWARD_TYPES_H__
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/tensor.h"
29 #include "data_management/data/homogen_tensor.h"
30 #include "services/daal_defines.h"
31 #include "algorithms/neural_networks/layers/layer_forward_types.h"
37 namespace neural_networks
60 data = layers::forward::data,
61 weights = layers::forward::weights,
62 biases = layers::forward::biases,
63 groundTruth = layers::forward::lastInputLayerDataId + 1,
64 lastInputId = groundTruth
76 class DAAL_EXPORT Input :
public layers::forward::Input
79 typedef layers::forward::Input super;
84 DAAL_DEPRECATED Input(
size_t nElements = lastInputId + 1);
89 using layers::forward::Input::get;
94 using layers::forward::Input::set;
102 DAAL_DEPRECATED data_management::TensorPtr
get(forward::InputId id)
const;
110 DAAL_DEPRECATED
void set(InputId
id,
const data_management::TensorPtr &ptr);
117 DAAL_DEPRECATED_VIRTUAL
virtual const services::Collection<size_t> getWeightsSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
124 virtual const services::Collection<size_t> getBiasesSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
135 class DAAL_EXPORT Result :
public layers::forward::Result
142 DAAL_DEPRECATED Result();
146 virtual ~Result() {};
151 using layers::forward::Result::get;
156 using layers::forward::Result::set;
167 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
178 template <
typename algorithmFPType>
179 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
186 virtual const services::Collection<size_t> getValueSize(
const services::Collection<size_t> &inputSize,
187 const daal::algorithms::Parameter *par,
const int method)
const DAAL_C11_OVERRIDE;
190 using interface1::Input;
191 using interface1::Result;
daal::algorithms::neural_networks::layers::loss::forward::weights
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:135
daal::algorithms::neural_networks::layers::forward::data
Definition: layer_forward_types.h:65
daal::algorithms::neural_networks::layers::loss::forward::data
Definition: loss_layer_forward_types.h:60
daal::algorithms::neural_networks::layers::loss::forward::InputId
InputId
Definition: loss_layer_forward_types.h:58
daal::algorithms::neural_networks::layers::loss::forward::groundTruth
Definition: loss_layer_forward_types.h:63
daal::algorithms::neural_networks::layers::loss::forward::interface1::Input
Input objects for the forward loss layer
Definition: loss_layer_forward_types.h:76