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/08/14 08:20:57 UTC

[GitHub] [tvm] cyx-6 commented on a diff in pull request #12421: [Fix] Fix `dtype` in Cache-Read/Write

cyx-6 commented on code in PR #12421:
URL: https://github.com/apache/tvm/pull/12421#discussion_r945249585


##########
python/tvm/script/tir/scope_handler.py:
##########
@@ -639,6 +639,8 @@ def create_loop_info(
         begin, end = [convert(_) for _ in [begin, end]]
         assert self.context and self.node, "call 'exit_scope' before 'enter_scope'"
         extent = end if begin == 0 else self.context.analyzer.simplify(end - begin)
+        if begin == 0 and isinstance(extent, PrimExpr):
+            begin = IntImm(extent.dtype, 0)

Review Comment:
   sure, I have updated 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