fq_mul_fusion.hpp
1 // Copyright (C) 2018-2021 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 #pragma once
6 
7 #include <memory>
8 #include <vector>
9 
10 #include <transformations_visibility.hpp>
11 
12 #include <ngraph/pass/graph_rewrite.hpp>
13 
14 namespace ngraph {
15 namespace pass {
16 
17 class TRANSFORMATIONS_API FakeQuantizeMulFusion;
18 
19 } // namespace pass
20 } // namespace ngraph
21 
22 /**
23  * @ingroup ie_transformation_common_api
24  * @brief This transformation looks for a FQ + Mul pair in the graph and moves
25  * the Mul operation above the FQ node. The last two inputs of FQ are multiplied
26  * by the value that was originally below the FQ node.
27  */
28 
29 class ngraph::pass::FakeQuantizeMulFusion : public ngraph::pass::MatcherPass {
30 public:
31  NGRAPH_RTTI_DECLARATION;
33 };
This transformation looks for a FQ + Mul pair in the graph and moves the Mul operation above the FQ n...
Definition: fq_mul_fusion.hpp:29
ngraph namespace
Definition: add_fake_quantize_fusion.hpp:14