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