MCPcopy Index your code
hub / github.com/apache/tvm / create_empty

Method create_empty

python/tvm/relax/expr.py:1026–1036  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected