You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/02/21 16:06:36 UTC
[GitHub] [tvm] MasterJH5574 opened a new pull request #10335: [TIR] Misc minor updates
MasterJH5574 opened a new pull request #10335:
URL: https://github.com/apache/tvm/pull/10335
This PR adds some minor changes to TIR codebase.
cc @junrushao1994 @Hzfengsy
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] junrushao1994 commented on a change in pull request #10335: [TIR] Misc minor updates
Posted by GitBox <gi...@apache.org>.
junrushao1994 commented on a change in pull request #10335:
URL: https://github.com/apache/tvm/pull/10335#discussion_r811333661
##########
File path: python/tvm/driver/build_module.py
##########
@@ -231,6 +231,8 @@ def build(
elif isinstance(inputs, PrimFunc):
input_mod = lower(inputs, name=name)
elif isinstance(inputs, tvm.IRModule):
+ if name is not None and name != "default_function":
Review comment:
See https://github.com/apache/tvm/pull/9678
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] junrushao1994 commented on a change in pull request #10335: [TIR] Misc minor updates
Posted by GitBox <gi...@apache.org>.
junrushao1994 commented on a change in pull request #10335:
URL: https://github.com/apache/tvm/pull/10335#discussion_r811314466
##########
File path: python/tvm/driver/build_module.py
##########
@@ -231,6 +231,8 @@ def build(
elif isinstance(inputs, PrimFunc):
input_mod = lower(inputs, name=name)
elif isinstance(inputs, tvm.IRModule):
+ if name is not None and name != "default_function":
Review comment:
Let’s skip this - likely it’s a mistake during rebase
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] MasterJH5574 commented on a change in pull request #10335: [TIR] Misc minor updates
Posted by GitBox <gi...@apache.org>.
MasterJH5574 commented on a change in pull request #10335:
URL: https://github.com/apache/tvm/pull/10335#discussion_r811599369
##########
File path: src/tir/ir/stmt_functor.cc
##########
@@ -700,10 +700,11 @@ Array<Range> Substitute(const Array<Range>& region, const Map<Var, PrimExpr>& vm
}
void PreOrderVisit(const ObjectRef& stmt_or_expr,
- const std::function<bool(const ObjectRef&)>& fvisit) {
+ const std::function<bool(const ObjectRef&)>& fvisit, bool visit_init_block) {
Review comment:
Yeah the param has no usage after confirmation. Just removed it.
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] Hzfengsy commented on a change in pull request #10335: [TIR] Misc minor updates
Posted by GitBox <gi...@apache.org>.
Hzfengsy commented on a change in pull request #10335:
URL: https://github.com/apache/tvm/pull/10335#discussion_r811510987
##########
File path: src/tir/ir/stmt_functor.cc
##########
@@ -700,10 +700,11 @@ Array<Range> Substitute(const Array<Range>& region, const Map<Var, PrimExpr>& vm
}
void PreOrderVisit(const ObjectRef& stmt_or_expr,
- const std::function<bool(const ObjectRef&)>& fvisit) {
+ const std::function<bool(const ObjectRef&)>& fvisit, bool visit_init_block) {
Review comment:
I think it makes no sense to add a parameter in the base class to determine if we visit the init block. Write an additional visitor may be a better choice.
##########
File path: include/tvm/tir/stmt.h
##########
@@ -1400,6 +1394,54 @@ constexpr const char* meta_schedule_unroll_explicit = "meta_schedule.unroll_expl
/*! \brief Mark auto-unroll setting on the block. */
constexpr const char* meta_schedule_unroll_implicit = "meta_schedule.unroll_implicit";
+/*!
+ * \brief Mark that the block need to add predicate for block var bounds during lowering
+ */
+constexpr const char* require_block_var_bound_predicate = "require_bound_predicate";
+
+/*!
+ * \brief Mark that the block should be further rewritten using tensorization.
+ */
+constexpr const char* meta_schedule_auto_tensorize = "meta_schedule.auto_tensorize";
Review comment:
Some annotations are not needed for now
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] Hzfengsy merged pull request #10335: [TIR] Misc minor updates
Posted by GitBox <gi...@apache.org>.
Hzfengsy merged pull request #10335:
URL: https://github.com/apache/tvm/pull/10335
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] MasterJH5574 commented on a change in pull request #10335: [TIR] Misc minor updates
Posted by GitBox <gi...@apache.org>.
MasterJH5574 commented on a change in pull request #10335:
URL: https://github.com/apache/tvm/pull/10335#discussion_r811501626
##########
File path: python/tvm/driver/build_module.py
##########
@@ -231,6 +231,8 @@ def build(
elif isinstance(inputs, PrimFunc):
input_mod = lower(inputs, name=name)
elif isinstance(inputs, tvm.IRModule):
+ if name is not None and name != "default_function":
Review comment:
Thanks for the reminder! Just reverted the change.
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org