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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to