You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "liangW-intellif (via GitHub)" <gi...@apache.org> on 2023/05/06 09:51:06 UTC

[GitHub] [tvm] liangW-intellif opened a new issue, #14788: [Bug] [TVMScript] Parser cannot parse TVMScript with some vector dtypes

liangW-intellif opened a new issue, #14788:
URL: https://github.com/apache/tvm/issues/14788

   Hi there,
   I tried to parse a TVMScript with long vector data type as the following case
   ```python
   @T.prim_func
   def func():
       A = T.var("int32x32")
       B = T.reinterpret(A, dtype="int8x128")
   
   
   f_script = func.script()
   f_roundtrip = script.from_source(f_script)
   ```
   It generates TVMScript as below
   ```python
   @T.prim_func
   def main():
       A = T.int32x32()
       B: T.int8x128 = T.reinterpret("int8x128", A)
       T.evaluate(0)
   ```
   But an error occured during parsing because of definiton of T.int8x128 is missing
   ```
    --> <str>:6:8
      |  
    6 |      B: T.int8x128 = T.reinterpret("int8x128", A)
      |         ^^^^^^^^^^  
   ```
   The current definition of vector dtype cannot cover all types in actual use,shall we consider changing the printing method of vector dtypes to something like  T.vec_type("int8", 128)?
   
   cc @junrushao @cyx-6 


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

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


Re: [I] [Bug] [TVMScript] Parser cannot parse TVMScript with some vector dtypes [tvm]

Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen closed issue #14788: [Bug] [TVMScript] Parser cannot parse TVMScript with some vector dtypes
URL: https://github.com/apache/tvm/issues/14788


-- 
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 issue #14788: [Bug] [TVMScript] Parser cannot parse TVMScript with some vector dtypes

Posted by "Hzfengsy (via GitHub)" <gi...@apache.org>.
Hzfengsy commented on issue #14788:
URL: https://github.com/apache/tvm/issues/14788#issuecomment-1537105336

   Looks good to me. Would also love to see opinions from the community


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