Skip to content

Commit

Permalink
[DOC]Update doc in _api_internal.py and ir_pass.py (apache#2514)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeexyz authored and tqchen committed Jan 29, 2019
1 parent 02631f6 commit 174c92a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion python/tvm/_api_internal.py
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
"""namespace of internal API"""
"""Namespace of internal API
The functions in this namespace are automatically exported from C++ side via PackedFunc
that is registered by "TVM_REGISTER_*" macro. This way makes calling Python functions from C++
side very easily.
Each string starts with "_" in the "TVM_REGISTER_*" macro is an internal API. You can find
all the functions in "api_lang.cc", "api_base.cc", "api_arith.cc" and "api_ir.cc" under "src/api".
"""
3 changes: 2 additions & 1 deletion python/tvm/ir_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
The functions are automatically exported from C++ side via PackedFunc.
Each api is a PackedFunc that can be called in a positional argument manner.
You can read "include/tvm/pass.h" for the function signature of these functions.
You can read "include/tvm/ir_pass.h" for the function signature and
"src/api/api_pass.cc" for the PackedFunc's body of these functions.
"""
from ._ffi.function import _init_api

Expand Down

0 comments on commit 174c92a

Please sign in to comment.