1 // Copyright (C) 2018 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
7 #include <builders/ie_layer_fragment.hpp>
8 #include <ie_inetwork.hpp>
11 namespace InferenceEngine {
15 * @brief The class represents a builder for MVN layer
17 class INFERENCE_ENGINE_API_CLASS(MVNLayer): public LayerFragment {
20 * @brief The constructor creates a builder with the name
21 * @param name Layer name
23 explicit MVNLayer(const std::string& name = "");
25 * @brief The constructor creates a builder from generic builder
26 * @param genLayer generic builder
28 explicit MVNLayer(Layer& genLayer);
30 * @brief Sets the name for the layer
31 * @param name Layer name
32 * @return reference to layer builder
34 MVNLayer& setName(const std::string& name);
37 * @brief Returns port with shapes for the layer
38 * @return Port with shapes
40 const Port& getPort() const;
42 * @brief Sets port shapes for the layer
43 * @param port Port with shapes
44 * @return reference to layer builder
46 MVNLayer& setPort(const Port& port);
48 * @brief Returns across channels value
49 * @return true if mean values are shared across channels
51 bool getAcrossChannels() const;
53 * @brief Sets across channels
54 * @param flag true if mean values are shared across channels
55 * @return reference to layer builder
57 MVNLayer& setAcrossChannels(bool flag);
59 * @brief Returns normalize variance
60 * @return true if variance normalization is performed
62 bool getNormalize() const;
64 * @brief Sets normalize variance
65 * @param flag true if variance normalization is performed
66 * @return reference to layer builder
68 MVNLayer& setNormalize(bool flag);
70 * @brief Return epsilon
73 float getEpsilon() const;
77 * @return reference to layer builder
79 MVNLayer& setEpsilon(float eps);
82 } // namespace Builder
83 } // namespace InferenceEngine