1 // Copyright (C) 2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
7 #include <description_buffer.hpp>
8 #include "ie_built_in_impl.hpp"
17 namespace InferenceEngine {
18 namespace ShapeInfer {
21 *@brief Implementation of Shape inference for quantize layer
23 class QuantizeShapeProp : public BuiltInShapeInferImpl {
25 explicit QuantizeShapeProp(const std::string& type) : BuiltInShapeInferImpl(type) {}
27 void inferShapesImpl(const std::vector<Blob::CPtr>& inBlobs,
28 const std::map<std::string, std::string>& params,
29 const std::map<std::string, Blob::Ptr>& blobs,
30 std::vector<SizeVector>& outShapes) override {
32 QuantizeLayer quantizeLayer(lp);
33 quantizeLayer.params = params;
34 quantizeLayer.type = _type;
35 validate(&quantizeLayer, inBlobs, params, blobs);
37 outShapes.push_back(inShapes[0]);
41 } // namespace ShapeInfer
42 } // namespace InferenceEngine