#include "GraphBuilderContext.h"
#include "GraphBuilderRegistry.h"
#include "Transforms.h"
-#include "Phase.h"
+#include "ProgressReporter.h"
#include "Annotations/ShapeInferenceData.h"
#include <locop/FormattedGraph.h>
#include <stdex/Memory.h>
+#include <logo/Phase.h>
+
#include <cassert>
#include <sstream>
#include <stdexcept>
LOGGER(transform_graph);
std::vector<std::unique_ptr<moco::tf::Transform>> prepare;
- moco::tf::Phase transforms;
+ logo::Phase transforms;
// Transforms that run only once for preparation and finalization
{
tr->run(graph);
}
- moco::tf::PhaseRunner<moco::tf::PhaseStrategy::Saturate> runner{graph};
+ moco::tf::ProgressReporter prog(graph, logo::PhaseStrategy::Saturate);
+ logo::PhaseRunner<logo::PhaseStrategy::Saturate> runner{graph};
+ runner.attach(&prog);
runner.run(transforms);
// TODO would be better to run this code only when log is enabled