junrushao1994 commented on a change in pull request #8641:
URL: https://github.com/apache/tvm/pull/8641#discussion_r682179258
##########
File path: src/driver/driver_api.cc
##########
@@ -288,6 +288,10 @@ IRModule ScheduleToModule(te::Schedule sch, const
Array<ObjectRef>& args, const
tir::PrimFunc f = te::SchedulePostProcToPrimFunc(out_arg_list,
std::move(stmt), out_binds);
f = WithAttr(std::move(f), "global_symbol", runtime::String(name));
+ // Mark this schedule as being converted from an TE schedule. Makes sure that
+ // the correct TE passes are run.
+ f = WithAttr(std::move(f), "from_legacy_te_schedule", Bool(true));
Review comment:
Shall we also update the `CreatePassList` method? The "phase 1" there
still uses a boolean flag to create different code paths, and ideally we should
actually unify the two paths
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]