1 // Copyright (C) 2020 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
9 #include <ngraph/ngraph.hpp>
10 #include <ngraph/opsets/opset1.hpp>
14 namespace low_precision {
16 typedef std::tuple<std::shared_ptr<Node>, std::shared_ptr<Node>> FakeQuantizeDequantizationValues;
18 class FakeQuantizeDequantization {
20 FakeQuantizeDequantization();
22 FakeQuantizeDequantization(
24 std::shared_ptr<ngraph::opset1::Convert> convert,
25 std::shared_ptr<ngraph::opset1::Subtract> subtract,
26 std::shared_ptr<ngraph::opset1::Multiply> multiply);
29 bool isShared() const;
30 bool isLowPrecision() const;
31 static bool checkElementwise(const std::shared_ptr<ngraph::Node>& elementwise);
34 std::shared_ptr<opset1::Convert> convert;
35 std::shared_ptr<opset1::Subtract> subtract;
36 std::shared_ptr<opset1::Multiply> multiply;
39 } // namespace low_precision