Skip to content

Commit

Permalink
[Relay] fixed to make TupleGetItem inherits the previous span (#16996)
Browse files Browse the repository at this point in the history
Co-authored-by: wenjian.ma <wenjian.ma@denglin.ai>
  • Loading branch information
mawnja and wenjian.ma authored May 14, 2024
1 parent d9dbbc9 commit b7467aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/expr_functor.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def visit_tuple_getitem(self, op):
new_tuple_value = self.visit(op.tuple_value)
if new_tuple_value == op.tuple_value:
return op
return TupleGetItem(new_tuple_value, op.index)
return TupleGetItem(new_tuple_value, op.index, span=op.span)

def visit_global_var(self, gvar):
return gvar
Expand Down

0 comments on commit b7467aa

Please sign in to comment.