22 #ifndef __BATCH_NORMALIZATION_LAYER_FORWARD_TYPES_H__
23 #define __BATCH_NORMALIZATION_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/batch_normalization/batch_normalization_layer_types.h"
36 namespace neural_networks
40 namespace batch_normalization
59 populationMean = layers::forward::lastInputLayerDataId + 1,
61 lastInputLayerDataId = populationVariance
73 class DAAL_EXPORT Input :
public layers::forward::Input
76 typedef layers::forward::Input super;
81 Input(
const Input& other);
88 using layers::forward::Input::get;
92 using layers::forward::Input::set;
102 template <
typename algorithmFPType>
103 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Parameter *parameter,
const int method);
109 virtual const services::Collection<size_t> getWeightsSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
115 virtual const services::Collection<size_t> getBiasesSizes(
const layers::Parameter *parameter)
const DAAL_C11_OVERRIDE;
122 data_management::TensorPtr
get(InputLayerDataId id)
const;
129 void set(InputLayerDataId
id,
const data_management::TensorPtr &ptr);
138 services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
146 class DAAL_EXPORT Result :
public layers::forward::Result
149 DECLARE_SERIALIZABLE_CAST(Result);
154 using layers::forward::Result::get;
155 using layers::forward::Result::set;
161 virtual const services::Collection<size_t> getValueSize(
const services::Collection<size_t> &inputSize,
162 const daal::algorithms::Parameter *par,
const int method)
const DAAL_C11_OVERRIDE;
172 template <
typename algorithmFPType>
173 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
181 virtual services::Status setResultForBackward(
const daal::algorithms::Input *input) DAAL_C11_OVERRIDE;
188 data_management::TensorPtr
get(LayerDataId id)
const;
195 void set(LayerDataId
id,
const data_management::TensorPtr &ptr);
205 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
209 template<
typename Archive,
bool onDeserialize>
210 services::Status serialImpl(Archive *arch)
212 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
215 typedef services::SharedPtr<Result> ResultPtr;
218 using interface1::Input;
219 using interface1::Result;
220 using interface1::ResultPtr;
daal::algorithms::neural_networks::layers::batch_normalization::forward::populationMean
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:146
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:60
daal
Definition: algorithm_base_common.h:31
daal::algorithms::neural_networks::layers::batch_normalization::forward::InputLayerDataId
InputLayerDataId
Definition: batch_normalization_layer_forward_types.h:57
daal::algorithms::neural_networks::layers::batch_normalization::forward::populationVariance
Definition: batch_normalization_layer_forward_types.h:60