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/06/16 01:53:44 UTC

[GitHub] [tvm] UniverseFly opened a new issue #8264: [TIR] Potential bug: type mismatch makes TVM core dumped, which cannot be captured as a Python exception

UniverseFly opened a new issue #8264:
URL: https://github.com/apache/tvm/issues/8264


   The following code triggers the problem, where I deliberately pass an `int` to the `name` argument of `Var`. Should such a behavior be considered a bug? I think it's common that people misuse APIs, but we may still wants to capture this bug at user level instead of a crash.
   
   ```python
   # OS: CentOS 7 & TVM: 0.8.dev0
   from tvm import tir
   
   if __name__ == '__main__':
       try:
           tir.Var(name=1, dtype='int')
       except:
           print("Should be captured")
   ```


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



[GitHub] [tvm] tqchen commented on issue #8264: [TIR] Potential bug: type mismatch makes TVM core dumped, which cannot be captured as a Python exception

Posted by GitBox <gi...@apache.org>.
tqchen commented on issue #8264:
URL: https://github.com/apache/tvm/issues/8264#issuecomment-886105355


   Thanks @UniverseFly for reporting, https://github.com/apache/tvm/pull/8547 should fix the problem


-- 
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] tqchen closed issue #8264: [TIR] Potential bug: type mismatch makes TVM core dumped, which cannot be captured as a Python exception

Posted by GitBox <gi...@apache.org>.
tqchen closed issue #8264:
URL: https://github.com/apache/tvm/issues/8264


   


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