24 #ifndef __BATCH_NORMALIZATION_LAYER_FORWARD_TYPES_H__
25 #define __BATCH_NORMALIZATION_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"
32 #include "algorithms/neural_networks/layers/batch_normalization/batch_normalization_layer_types.h"
38 namespace neural_networks
42 namespace batch_normalization
61 populationMean = layers::forward::lastInputLayerDataId + 1,
63 lastInputLayerDataId = populationVariance
76 class DAAL_EXPORT Input :
public layers::forward::Input
79 typedef layers::forward::Input super;
90 Input(
const Input& other);
97 using layers::forward::Input::get;
101 using layers::forward::Input::set;
112 template <
typename algorithmFPType>
113 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Parameter *parameter,
const int method);
120 DAAL_DEPRECATED_VIRTUAL
virtual const services::Collection<size_t> getWeightsSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
127 DAAL_DEPRECATED_VIRTUAL
virtual const services::Collection<size_t> getBiasesSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
135 DAAL_DEPRECATED data_management::TensorPtr
get(InputLayerDataId id)
const;
143 void set(InputLayerDataId
id,
const data_management::TensorPtr &ptr);
153 DAAL_DEPRECATED services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
163 class DAAL_EXPORT Result :
public layers::forward::Result
166 DECLARE_SERIALIZABLE_CAST(Result);
174 using layers::forward::Result::get;
175 using layers::forward::Result::set;
182 DAAL_DEPRECATED_VIRTUAL
virtual const services::Collection<size_t> getValueSize(
const services::Collection<size_t> &inputSize,
183 const daal::algorithms::Parameter *par,
const int method)
const DAAL_C11_OVERRIDE;
194 template <
typename algorithmFPType>
195 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
204 DAAL_DEPRECATED_VIRTUAL
virtual services::Status setResultForBackward(
const daal::algorithms::Input *input) DAAL_C11_OVERRIDE;
212 data_management::TensorPtr
get(LayerDataId id)
const;
220 DAAL_DEPRECATED
void set(LayerDataId
id,
const data_management::TensorPtr &ptr);
231 DAAL_DEPRECATED services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
238 template<
typename Archive,
bool onDeserialize>
239 services::Status serialImpl(Archive *arch)
241 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
244 typedef services::SharedPtr<Result> ResultPtr;
247 using interface1::Input;
248 using interface1::Result;
249 using interface1::ResultPtr;
daal::algorithms::neural_networks::layers::batch_normalization::LayerDataId
LayerDataId
Identifiers of input objects for the backward batch normalization layer and results for the forward b...
Definition: batch_normalization_layer_types.h:62
daal::algorithms::neural_networks::layers::batch_normalization::forward::populationVariance
Definition: batch_normalization_layer_forward_types.h:62
daal::algorithms::neural_networks::layers::batch_normalization::forward::interface1::Input
Input objects for the forward batch normalization layer.
Definition: batch_normalization_layer_forward_types.h:76
daal::algorithms::neural_networks::layers::batch_normalization::forward::populationMean
Definition: batch_normalization_layer_forward_types.h:61
daal::algorithms::neural_networks::layers::batch_normalization::forward::InputLayerDataId
InputLayerDataId
Definition: batch_normalization_layer_forward_types.h:59
daal::algorithms::neural_networks::layers::batch_normalization::forward::interface1::Result
Provides methods to access the result obtained with the compute() method of the forward batch normali...
Definition: batch_normalization_layer_forward_types.h:163