48 #ifndef __BATCH_NORMALIZATION_LAYER_BACKWARD_TYPES_H__ 49 #define __BATCH_NORMALIZATION_LAYER_BACKWARD_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_backward_types.h" 56 #include "algorithms/neural_networks/layers/batch_normalization/batch_normalization_layer_types.h" 62 namespace neural_networks
66 namespace batch_normalization
89 class DAAL_EXPORT Input :
public layers::backward::Input
92 typedef layers::backward::Input super;
98 Input(
const Input& other);
105 using layers::backward::Input::get;
110 using layers::backward::Input::set;
117 data_management::TensorPtr
get(LayerDataId id)
const;
124 void set(LayerDataId id,
const data_management::TensorPtr &ptr);
133 services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
141 class DAAL_EXPORT Result :
public layers::backward::Result
144 DECLARE_SERIALIZABLE_CAST(Result);
152 using layers::backward::Result::get;
157 using layers::backward::Result::set;
167 template <
typename algorithmFPType>
168 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
178 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
182 template<
typename Archive,
bool onDeserialize>
183 services::Status serialImpl(Archive *arch)
185 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
188 typedef services::SharedPtr<Result> ResultPtr;
191 using interface1::Input;
192 using interface1::Result;
193 using interface1::ResultPtr;
daal::services::interface1::Status
Class that holds the results of API calls. In case of API routine failure it contains the list of err...
Definition: error_handling.h:491
daal
Definition: algorithm_base_common.h:57
daal::algorithms::neural_networks::layers::backward::interface1::Result::get
data_management::TensorPtr get(ResultId id) const
daal::algorithms::interface1::Parameter
Base class to represent computation parameters. Algorithm-specific parameters are represented as deri...
Definition: algorithm_types.h:86
daal::services::interface1::SharedPtr
Shared pointer that retains shared ownership of an object through a pointer. Several SharedPtr object...
Definition: daal_shared_ptr.h:187
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:86
daal::algorithms::neural_networks::layers::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the layer algorithm...
Definition: layer_backward_types.h:224
daal::algorithms::neural_networks::layers::batch_normalization::backward::interface1::Result
Provides methods to access the result obtained with the compute() method of the backward batch normal...
Definition: batch_normalization_layer_backward_types.h:141
daal::algorithms::neural_networks::layers::backward::interface1::Result::set
void set(ResultId id, const data_management::TensorPtr &ptr)