This will revise Optimizer to use logo Phase and ProgressReporter
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
#include "Optimizer.h"
#include "Knob.h"
-#include "Phase.h"
+#include "ProgressReporter.h"
#include "Transforms.h"
+#include <logo/Phase.h>
+
#include <stdex/Memory.h>
namespace moco
void Optimizer::optimize(loco::Graph *g) const
{
- moco::tf::Phase phase;
+ logo::Phase phase;
/* TRANSFORM DECLARATION BEGIN */
// Shape inference is required for ResolveRedundantReshape
}
/* TRANSFORM DECLARATION END */
- moco::tf::PhaseRunner<moco::tf::PhaseStrategy::Saturate> phase_runner{g};
+ ProgressReporter prog(g, logo::PhaseStrategy::Saturate);
+ logo::PhaseRunner<logo::PhaseStrategy::Saturate> phase_runner{g};
+ phase_runner.attach(&prog);
phase_runner.run(phase);
}