tkonolige commented on a change in pull request #8895:
URL: https://github.com/apache/tvm/pull/8895#discussion_r700351297
##########
File path: python/tvm/script/parser.py
##########
@@ -536,7 +536,7 @@ def transform_SubscriptAssign(self, node):
if len(indexes) != 1:
self.report_error(
f"Store is only allowed with one index, but {len(indexes)}
were provided.",
- tvm.ir.Span.union([x.span for x in indexes]),
+ node.params[1].span,
Review comment:
```suggestion
ast.Span.union([x.span for x in node.params[1:]]),
```
You want the union of all the spans, not just the first one.
--
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]