ConcatMerge is a pass for TFL nodes. Therefore it would be better to run this pass after completion of canonical nodes to TFL nodes.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
#include "Convert.h"
#include "Conversions.h"
-#include "Passes.h"
+#include "Pass/ShapeInferencePass.h"
+#include "Pass/TypeInferencePass.h"
#include "ProgressReporter.h"
#include "Knob.h"
phase.emplace_back(stdex::make_unique<logo::SimplifyDomainConversionPass>());
phase.emplace_back(stdex::make_unique<logo::RemoveForwardNodePass>());
phase.emplace_back(stdex::make_unique<logo::RemoveDeadNodePass>());
- phase.emplace_back(stdex::make_unique<MergeConcatNodesPass>());
}
logo::PhaseRunner<logo::PhaseStrategy::Restart> phase_runner{graph};
phase.emplace_back(stdex::make_unique<FuseReluPass>());
}
+ phase.emplace_back(stdex::make_unique<MergeConcatNodesPass>());
+
phase.emplace_back(stdex::make_unique<logo::RemoveDeadNodePass>());
}
namespace exo
{
+/**
+ * @brief Run passes for a graph after completion of converting canonical nodes into TFL nodes.
+ */
void optimize(loco::Graph *);
} // namespace exo