This attaches progress reporter into the phase of convert_to_TFLNodes().
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
#include "TypeInferencePass.h"
#include "ShapeInferencePass.h"
+#include "ProgressReporter.h"
#include <loco.h>
#include <loco/Service/ShapeInference.h>
// TODO Add optimization passes
}
- logo::PhaseRunner<logo::PhaseStrategy::Restart> phase_runner{graph};
+ logo::PhaseRunner<logo::PhaseStrategy::Saturate> phase_runner{graph};
+
+ ProgressReporter prog(graph, logo::PhaseStrategy::Saturate);
+ phase_runner.attach(&prog);
phase_runner.run(phase);
// TODO Assert if all canonical nodes are converted to TFL node