-// Copyright (C) 2018 Intel Corporation
+// Copyright (C) 2018-2019 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
-#include <builders/ie_layer_fragment.hpp>
-#include <ie_inetwork.hpp>
+#include <builders/ie_layer_decorator.hpp>
+#include <ie_network.hpp>
#include <string>
namespace InferenceEngine {
/**
* @brief The class represents a builder for BatchNormalization layer
*/
-class INFERENCE_ENGINE_API_CLASS(BatchNormalizationLayer): public LayerFragment {
+class INFERENCE_ENGINE_API_CLASS(BatchNormalizationLayer): public LayerDecorator {
public:
/**
* @brief The constructor creates a builder with the name
explicit BatchNormalizationLayer(const std::string& name = "");
/**
* @brief The constructor creates a builder from generic builder
- * @param genLayer generic builder
+ * @param layer pointer to generic builder
*/
- explicit BatchNormalizationLayer(Layer& genLayer);
+ explicit BatchNormalizationLayer(const Layer::Ptr& layer);
+ /**
+ * @brief The constructor creates a builder from generic builder
+ * @param layer constant pointer to generic builder
+ */
+ explicit BatchNormalizationLayer(const Layer::CPtr& layer);
/**
* @brief Sets the name for the layer
* @param name Layer name
BatchNormalizationLayer& setPort(const Port &port);
/**
- * @brief Sets weights for layer
- * @param weights Constant blob with weights
- * @return reference to layer builder
- */
- BatchNormalizationLayer& setWeights(const Blob::CPtr& weights);
- /**
- * @brief Sets biases for layer
- * @param biases Constant blob with biases
- * @return reference to layer builder
- */
- BatchNormalizationLayer& setBiases(const Blob::CPtr& biases);
-
- /**
* @brief Returns epsilon
* @return Epsilon
*/
* @return reference to layer builder
*/
BatchNormalizationLayer& setEpsilon(float eps);
-
- /**
- * @brief Validates layer before creation
- * @param layer generic layer builder
- */
- static void validate(const Layer& layer);
};
} // namespace Builder