A pattern matching a function node in Relax. Parameters ---------- params: List[tvm.relax.dpl.DFPattern] The parameters to the Function or None to match any parameters. body: tvm.relax.dpl.DFPattern The body fo the Function
| 426 | |
| 427 | @register_df_node |
| 428 | class FunctionPattern(DFPattern): |
| 429 | """A pattern matching a function node in Relax. |
| 430 | |
| 431 | Parameters |
| 432 | ---------- |
| 433 | params: List[tvm.relax.dpl.DFPattern] |
| 434 | The parameters to the Function or None to match any parameters. |
| 435 | |
| 436 | body: tvm.relax.dpl.DFPattern |
| 437 | The body fo the Function |
| 438 | |
| 439 | """ |
| 440 | |
| 441 | def __init__( |
| 442 | self, |
| 443 | params: list["DFPattern"], |
| 444 | body: "DFPattern", |
| 445 | ): |
| 446 | self.__init_handle_by_constructor__(ffi.FunctionPattern, params, body) # type: ignore |
| 447 | |
| 448 | |
| 449 | @register_df_node |
no outgoing calls
searching dependent graphs…