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 2021/01/06 01:39:21 UTC

[GitHub] [tvm] hypercubestart commented on a change in pull request #7216: [TIR][REFACTOR] Enforce allocate to use the correct var pointer hint.

hypercubestart commented on a change in pull request #7216:
URL: https://github.com/apache/tvm/pull/7216#discussion_r552314233



##########
File path: python/tvm/tir/buffer.py
##########
@@ -247,7 +247,10 @@ def decl_buffer(
         shape_dtype = shape[0].dtype if hasattr(shape[0], "dtype") else "int32"
         elem_offset = Var("%s_elem_offset" % name, shape_dtype)
     if data is None:
-        data = Var(name, PointerType(PrimType(dtype)), span)
+        # Bool is represented as uint1 in the IR, but stored as uint8

Review comment:
       is this supposed to be "stored as int8"?




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org