MCPcopy
hub / github.com/apache/tvm / MergeCompositeFunctions

Function MergeCompositeFunctions

python/tvm/relax/transform/transform.py:965–975  ·  view source on GitHub ↗

Group one or multiple composite functions created by FuseOpsByPattern into a new function. The new function will be annotated with "Codegen" and "global_symbol" attributes, and it is intented to be offloaded to an external backend. Returns ------- ret : tvm.transform.Pass

()

Source from the content-addressed store, hash-verified

963
964
965def MergeCompositeFunctions() -> tvm.ir.transform.Pass:
966 """Group one or multiple composite functions created by FuseOpsByPattern into a new function.
967 The new function will be annotated with "Codegen" and "global_symbol" attributes, and it
968 is intented to be offloaded to an external backend.
969
970 Returns
971 -------
972 ret : tvm.transform.Pass
973 The registered pass for merging composite functions.
974 """
975 return _ffi_api.MergeCompositeFunctions() # type: ignore
976
977
978def AttachAttrLayoutFreeBuffers() -> tvm.ir.transform.Pass:

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…