MCPcopy Create free account
hub / github.com/apache/tvm / update_func

Method update_func

python/tvm/relax/block_builder.py:738–749  ·  view source on GitHub ↗

Add a Relax function or a TIR PrimFunc to the IRModule being built. Parameters ---------- gv : GlobalVar The global var referring the function to be updated. updated_func : BaseFunc The updated function.

(self, gv: GlobalVar, updated_func: BaseFunc)

Source from the content-addressed store, hash-verified

736 return _ffi_api.BlockBuilderAddFunction(self, func, func_name) # type: ignore
737
738 def update_func(self, gv: GlobalVar, updated_func: BaseFunc) -> None:
739 """Add a Relax function or a TIR PrimFunc to the IRModule being built.
740
741 Parameters
742 ----------
743 gv : GlobalVar
744 The global var referring the function to be updated.
745
746 updated_func : BaseFunc
747 The updated function.
748 """
749 return _ffi_api.BlockBuilderUpdateFunction(self, gv, updated_func) # type: ignore
750
751 def current_block_is_dataflow(self) -> bool:
752 """Check if the block being built is DataflowBlock or not.

Callers 13

transform_moduleMethod · 0.95
_get_subroutineMethod · 0.45
transform_moduleMethod · 0.45
transform_moduleMethod · 0.45
annotate_workspaceFunction · 0.45
annotate_workspaceFunction · 0.45
transform_moduleMethod · 0.45
transform_moduleMethod · 0.45
transformMethod · 0.45

Calls

no outgoing calls