ie_batch_normalization_layer.hpp
Go to the documentation of this file.
1 // Copyright (C) 2018-2020 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 /**
6  * @file
7  */
8 
9 #pragma once
10 
12 #include <ie_network.hpp>
13 #include <string>
14 
15 namespace InferenceEngine {
16 namespace Builder {
17 
18 /**
19  * @deprecated Use ngraph API instead.
20  * @brief The class represents a builder for BatchNormalization layer
21  */
22 class INFERENCE_ENGINE_NN_BUILDER_API_CLASS(BatchNormalizationLayer): public LayerDecorator {
23 public:
24  /**
25  * @brief The constructor creates a builder with the name
26  * @param name Layer name
27  */
28  explicit BatchNormalizationLayer(const std::string& name = "");
29  /**
30  * @brief The constructor creates a builder from generic builder
31  * @param layer pointer to generic builder
32  */
33  explicit BatchNormalizationLayer(const Layer::Ptr& layer);
34  /**
35  * @brief The constructor creates a builder from generic builder
36  * @param layer constant pointer to generic builder
37  */
38  explicit BatchNormalizationLayer(const Layer::CPtr& layer);
39  /**
40  * @brief Sets the name for the layer
41  * @param name Layer name
42  * @return reference to layer builder
43  */
44  BatchNormalizationLayer& setName(const std::string& name);
45 
46  /**
47  * @brief Returns port with shapes for the layer
48  * @return Port with shapes
49  */
50  const Port& getPort() const;
51  /**
52  * @brief Sets port shapes for the layer
53  * @param port Port with shapes
54  * @return reference to layer builder
55  */
56  BatchNormalizationLayer& setPort(const Port& port);
57 
58  /**
59  * @brief Returns epsilon
60  * @return Epsilon
61  */
62  float getEpsilon() const;
63  /**
64  * @brief Sets epsilon
65  * @param eps Epsilon
66  * @return reference to layer builder
67  */
68  BatchNormalizationLayer& setEpsilon(float eps);
69 };
70 
71 } // namespace Builder
72 } // namespace InferenceEngine
Inference Engine API.
Definition: ie_argmax_layer.hpp:15
std::shared_ptr< const Layer > CPtr
A shared pointer to the constant Layer builder.
Definition: ie_layer_builder.hpp:52
This class defines the basic functional for layer builders.
Definition: ie_layer_decorator.hpp:26
std::shared_ptr< Layer > Ptr
A shared pointer to the Layer builder.
Definition: ie_layer_builder.hpp:48
The class represents a builder for BatchNormalization layer.
Definition: ie_batch_normalization_layer.hpp:22
a header file for the Inference Engine Network interface
This class is the main object to describe the Inference Engine port.
Definition: ie_network.hpp:230