{
std::vector<std::unique_ptr<moco::tf::Transform>> prepare;
std::vector<std::unique_ptr<moco::tf::Transform>> transforms;
- std::vector<std::unique_ptr<moco::tf::Transform>> finalize;
// Transforms that run only once for preparation and finalization
{
- // TODO add one time preparation when needed
-
- // To remove frontend temporary annotations
- finalize.emplace_back(stdex::make_unique<moco::tf::ClearAnnotTransform>());
- // TODO add one time finalization when needed
+ // TODO add one time preparation when needed
}
// Transforms that run multiple times until there is no transform occured
}
}
- // Run finalize to cleanup temporary annotations
- for (auto &tr : finalize)
- {
- tr->run(graph);
- }
-
// validate graph
assert(loco::valid(graph));
}