Hzfengsy commented on a change in pull request #8408:
URL: https://github.com/apache/tvm/pull/8408#discussion_r665167355
##########
File path: python/tvm/script/node.py
##########
@@ -114,6 +114,11 @@ def check_index(index: Union[int, PrimExpr]):
check_index(index.start)
check_index(index.stop)
slices.append(index)
+ elif isinstance(index, BufferSlice):
+ for s in index.slices:
+ if isinstance(s, Slice):
+ check_index(s.start)
+ slices.append(index)
Review comment:
Python does not have type conversion system. The only thing we do is
converting `BufferSlice` to `BufferLoad` when creating TVM Object.
In this case, it still in the Python system, so can not be converted into
`BufferLoad`
--
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]