File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33// SPDX-License-Identifier: Apache-2.0
44
55#include " onnxoptimizer/pass_manager.h"
6+ #include " onnxoptimizer/passes/logging.h"
67
78namespace ONNX_NAMESPACE {
89namespace optimization {
@@ -36,10 +37,16 @@ std::shared_ptr<PassManagerAnalysis> FixedPointPassManager::run(Graph& graph) {
3637 }
3738 std::shared_ptr<CountBasedPassAnalysis> count_analysis =
3839 std::static_pointer_cast<CountBasedPassAnalysis>(analysis);
40+ if (count_analysis->num_positive_transforms != 0 ) {
41+ VLOG (1 ) << " Pass " << pass->getPassName () << " transformed " << count_analysis->num_positive_transforms ;
42+ }
3943
4044 while (count_analysis->fixedPointOptimizationNeeded ()) {
4145 count_analysis = std::static_pointer_cast<CountBasedPassAnalysis>(
4246 pass->runPass (graph));
47+ if (count_analysis->num_positive_transforms != 0 ) {
48+ VLOG (1 ) << " Pass " << pass->getPassName () << " transformed " << count_analysis->num_positive_transforms ;
49+ }
4350 fixed_point_optimization_done = true ;
4451 }
4552 }
You can’t perform that action at this time.
0 commit comments