slyubomirsky commented on issue #14240:
URL: https://github.com/apache/tvm/issues/14240#issuecomment-1460860092
Are we certain that the var in the function `foo` is being copied/recreated?
Maybe reusing the var object (pointer and all) is throwing off the free var
mapping somehow.
This version works, namely:
```python
@I.ir_module
class Foo:
@R.function
def main(x: R.Object):
@R.function
def foo(y: R.Object):
return y
return foo(x)
@R.function
def some_func(x: R.Object):
@R.function
def foo(y: R.Object):
return y
return foo(x)
```
--
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]