Skip to content

Commit bf752dc

Browse files
[Fix] Fix ExecBuilderDeclareFunction method name in exec_builder.py (#18092)
Align it with the backend implementation in https://github.com/apache/tvm/blob/main/src/relax/backend/vm/exec_builder.cc#L349
1 parent a842004 commit bf752dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tvm/relax/exec_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def vm_state(self) -> int:
8787

8888
def declare_function(self, func_name: str, kind: VMFuncKind = VMFuncKind.PACKED_FUNC) -> None:
8989
"""Declare a function"""
90-
_ffi_api.ExecBuilderDecalreFunction(self, func_name, kind) # type: ignore
90+
_ffi_api.ExecBuilderDeclareFunction(self, func_name, kind) # type: ignore
9191

9292
def function(
9393
self, func_name: str, num_inputs: Optional[int] = 0, param_names: List[str] = None

0 commit comments

Comments
 (0)