A external function pattern. Parameters ---------- global_symbol: str The name of the function. Optional, if not provided, the pattern will match any ExternFuncNode.
| 358 | |
| 359 | @register_df_node |
| 360 | class ExternFuncPattern(DFPattern): |
| 361 | """A external function pattern. |
| 362 | |
| 363 | Parameters |
| 364 | ---------- |
| 365 | global_symbol: str |
| 366 | The name of the function. Optional, if not provided, |
| 367 | the pattern will match any ExternFuncNode. |
| 368 | """ |
| 369 | |
| 370 | def __init__(self, global_symbol: str = ""): |
| 371 | self.__init_handle_by_constructor__(ffi.ExternFuncPattern, global_symbol) # type: ignore |
| 372 | |
| 373 | |
| 374 | @register_df_node |
no outgoing calls
searching dependent graphs…