Open jikechao opened 3 weeks ago
Thanks for the contribution!
First, it's not a typical bug. (10)
is just an integer rather than a list based on the Python syntax, while [10]
and (10, )
are list and tuples. Here, we request a list as input, so the error is expected (based on the current implementation)
Second, it should be a valuable sugar for end users. But please:
When the output tensor is in the form of (10), TVM will crash unexpectedly as follows. This PR adds a rule to convert the (10) to (10,) to avoid such a crash!
cc @tqchen @Hzfengsy @Lunderberg @yongwww