extern function, which represents a PackedFunc.
| 1131 | |
| 1132 | @tvm_ffi.register_object("relax.expr.ExternFunc") |
| 1133 | class ExternFunc(BaseFunc, ExprWithOp): |
| 1134 | """extern function, which represents a PackedFunc.""" |
| 1135 | |
| 1136 | global_symbol: String |
| 1137 | span: Span | None |
| 1138 | |
| 1139 | def __init__( |
| 1140 | self, |
| 1141 | global_symbol: String, |
| 1142 | struct_info: StructInfo | None = None, |
| 1143 | span: Span | None = None, |
| 1144 | ) -> None: |
| 1145 | self.__init_handle_by_constructor__( |
| 1146 | _ffi_api.ExternFunc, |
| 1147 | global_symbol, |
| 1148 | struct_info, |
| 1149 | span, # type: ignore |
| 1150 | ) |
| 1151 | |
| 1152 | |
| 1153 | def extern(name: str, struct_info: StructInfo | None = None, span: Span | None = None): |
no outgoing calls
searching dependent graphs…