Construct a relax.Function but without body
(
params: list[Var],
ret_struct_info: StructInfo,
is_pure: bool | None = True,
attrs: tvm.ir.DictAttrs | None = None,
span: Span | None = None,
)
| 1024 | |
| 1025 | @staticmethod |
| 1026 | def create_empty( |
| 1027 | params: list[Var], |
| 1028 | ret_struct_info: StructInfo, |
| 1029 | is_pure: bool | None = True, |
| 1030 | attrs: tvm.ir.DictAttrs | None = None, |
| 1031 | span: Span | None = None, |
| 1032 | ): |
| 1033 | """Construct a relax.Function but without body""" |
| 1034 | if attrs is None: |
| 1035 | attrs = tvm.ir.DictAttrs({}) |
| 1036 | return _ffi_api.FunctionCreateEmpty(params, ret_struct_info, is_pure, attrs, span) # type: ignore |
| 1037 | |
| 1038 | def __call__(self, *args): |
| 1039 | """Invoke the global function. |
no outgoing calls
no test coverage detected