slyubomirsky commented on code in PR #15140:
URL: https://github.com/apache/tvm/pull/15140#discussion_r1240133422
##########
tests/python/relax/test_tvmscript_printer_relax.py:
##########
@@ -73,6 +94,40 @@ def func(a: R.Tensor((10, 10))) -> R.Tensor((10, 10)):
)
+def test_nested_function():
Review Comment:
This actually uncovered a seemingly unrelated bug in the printer, where the
nested function would be printed with a suffix after its name (see the changes
in `src/script/printer/utils.h`) because the LHS variable in the `VarBinding`
was treated as already having been encountered. Also fixed.
--
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]