You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "ekalda (via GitHub)" <gi...@apache.org> on 2023/03/20 10:22:42 UTC

[GitHub] [tvm] ekalda opened a new issue, #14342: [Bug][TVMScript][Roundtripping] TVMScript from TE cannot be parsed due to missing storage_scope

ekalda opened a new issue, #14342:
URL: https://github.com/apache/tvm/issues/14342

   ### Expected behavior
   
   Scripting a simple lowered TE program
   ```
   type = "float32"
   num = 10
   
   A = te.placeholder((num,), dtype=type, name="A")
   B = te.placeholder((num,), dtype=type, name="B")
   C = te.compute((num,), lambda i: A[i] + B[i], name="C")
   s = te.create_schedule([C.op])
   
   out = schedule_to_module(s, [A, B], "my_module")
   out.script()
   ```
   Results in a following TVMScript:
   ```
   @I.ir_module
   class Module:
       @T.prim_func
       def my_module(A: T.Buffer((10,), "float32"), B: T.Buffer((10,), "float32")):
           T.func_attr({"from_legacy_te_schedule": True, "global_symbol": "my_module", "tir.noalias": True})
           C = T.Buffer((10,))
           T.realize(C[0:10])
           for i in range(10):
               C[i] = A[i] + B[i]
   ```
   We should be able to parse it, i.e. 
   ```
   tvm.script.from_source(out.script())
   ```
   should work.
   
   ### Actual behavior
   ```
   error: realize() missing 1 required positional argument: 'storage_scope'
    --> <str>:10:9
       |  
    10 |          T.realize(C[0:10])
   ```
   during parsing.
   
   ### Triage
   
   * tir:parser
   


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


[GitHub] [tvm] Hzfengsy commented on issue #14342: [Bug][TVMScript][Roundtripping] TVMScript from TE cannot be parsed due to missing storage_scope

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

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

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


Re: [I] [Bug][TVMScript][Roundtripping] TVMScript from TE cannot be parsed due to missing storage_scope [tvm]

Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen closed issue #14342: [Bug][TVMScript][Roundtripping] TVMScript from TE cannot be parsed due to missing storage_scope
URL: https://github.com/apache/tvm/issues/14342


-- 
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 closed issue #14342: [Bug][TVMScript][Roundtripping] TVMScript from TE cannot be parsed due to missing storage_scope

Posted by "Hzfengsy (via GitHub)" <gi...@apache.org>.
Hzfengsy closed issue #14342: [Bug][TVMScript][Roundtripping] TVMScript from TE cannot be parsed due to missing storage_scope
URL: https://github.com/apache/tvm/issues/14342


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