(self, *args)
| 419 | @dispatch.register(token="relax", type_name="enter_token") |
| 420 | def enter_token(self: Parser) -> dict[str, Any]: |
| 421 | def relax_call(self, *args) -> Expr: |
| 422 | args = [convert_to_expr(arg) if isinstance(arg, tuple) else arg for arg in args] |
| 423 | |
| 424 | if all(isinstance(x, Expr) for x in args): |
| 425 | return relax.Call(self, args) |
| 426 | arg_types = [type(x) for x in args] |
| 427 | raise RuntimeError(f"Do not know how to handle GlobalVar.__call__ for types {arg_types}") |
| 428 | |
| 429 | context = {"GlobalVar.__call__": GlobalVar.__call__} |
| 430 | GlobalVar.__call__ = relax_call |
nothing calls this directly
no test coverage detected
searching dependent graphs…