tqchen opened a new pull request, #18846: URL: https://github.com/apache/tvm/pull/18846
## Summary - Fix `@type_checked` decorator for PEP 563 (`from __future__ import annotations`) using `typing.get_type_hints()` - Remove `@args_converter.auto` decorator entirely — explicit `convert_to_expr` calls at ~9 call sites instead - Delete `python/tvm/relax/type_converter.py` and its test ## Commit 1: Fix @type_checked for PEP 563 - Uses `typing.get_type_hints(func)` at decoration time to resolve string annotations - All 632 s_tir/schedule tests pass ## Commit 2: Remove args_converter - Strip `@args_converter.auto` from 10 files - Add explicit `convert_to_expr` / `_wrap_inline_arg_tuple` at call sites that need type conversion - 4892 relax tests pass (10 failures all pre-existing) ## Test plan - [x] s_tir/schedule: 632 passed, 4 skipped - [x] relax: 4892 passed, 304 skipped, 28 xfailed - [ ] CI passes -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
