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

Function RunCodegen

python/tvm/relax/transform/transform.py:702–727  ·  view source on GitHub ↗

Produce the runtime::Module with an annotated codegen and global symbol. Parameters ---------- target_options: Optional[dict] Pairs of a target name and compilation options entry_functions: Optional[List[str]] The set of entry functions to start from. Returns

(
    target_options: dict | None = None,
    entry_functions: list[str] | None = None,
)

Source from the content-addressed store, hash-verified

700
701
702def RunCodegen(
703 target_options: dict | None = None,
704 entry_functions: list[str] | None = None,
705) -> tvm.ir.transform.Pass:
706 """Produce the runtime::Module with an annotated codegen and global symbol.
707
708 Parameters
709 ----------
710 target_options: Optional[dict]
711 Pairs of a target name and compilation options
712 entry_functions: Optional[List[str]]
713 The set of entry functions to start from.
714
715 Returns
716 -------
717 ret : tvm.transform.Pass
718 The registered pass to remove unused functions.
719 """
720 if entry_functions is None:
721 entry_functions = []
722
723 # enable cutlass byoc registries
724 # pylint: disable=unused-import,import-outside-toplevel
725 from tvm.contrib import cutlass as _cutlass
726
727 return _ffi_api.RunCodegen(target_options, entry_functions) # type: ignore
728
729
730def FoldConstant() -> tvm.ir.transform.Pass:

Calls

no outgoing calls

Tested by 2

test_example_npu_codegenFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…