未验证 提交 daa73771 编写于 作者: L lujun 提交者: GitHub

Merge pull request #16183 from tianshuo78520a/fix_api.spec

Fix api.spec
......@@ -51,6 +51,8 @@ def visit_member(parent_name, member):
all = (args, doc)
member_dict[cur_name] = all
except TypeError: # special for PyBind method
if cur_name in check_modules_list:
return
member_dict[cur_name] = " ".join([
line.strip() for line in pydoc.render_doc(member).split('\n')
if "->" in line
......@@ -78,6 +80,7 @@ def visit_all_module(mod):
visit_member(mod.__name__, instance)
check_modules_list = ["paddle.reader.ComposeNotAligned.__init__"]
modules = sys.argv[1].split(",")
for m in modules:
visit_all_module(importlib.import_module(m))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册