From 5bffe08434ad9a4f0aab4645c3fa13e563d26881 Mon Sep 17 00:00:00 2001 From: Hyukjin Jeong Date: Fri, 3 Jan 2025 14:57:12 +0900 Subject: [PATCH] [luci] Propagate qparam forward iteratively (#14518) This iteratively propagates qparam forward. ONE-DCO-1.0-Signed-off-by: Hyukjin Jeong --- compiler/luci/pass/src/QuantizeOnnxFakeQuantModelPass.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/compiler/luci/pass/src/QuantizeOnnxFakeQuantModelPass.cpp b/compiler/luci/pass/src/QuantizeOnnxFakeQuantModelPass.cpp index b95c7ea150c..c0826201a87 100644 --- a/compiler/luci/pass/src/QuantizeOnnxFakeQuantModelPass.cpp +++ b/compiler/luci/pass/src/QuantizeOnnxFakeQuantModelPass.cpp @@ -22,6 +22,7 @@ #include "QuantizeActivation.h" #include "QuantizationUtils.h" +#include #include #include #include @@ -89,8 +90,11 @@ bool QuantizeOnnxFakeQuantModelPass::run(loco::Graph *g) // Quantize nodes using their predecessors' qparams { - QuantizeWithPredecessorPass pass; - pass.run(g); + logo::Phase phase; + phase.emplace_back(std::make_unique()); + + logo::PhaseRunner phase_runner{g}; + phase_runner.run(phase); } // Backward propagation of activation qparam