Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
ad6ed5b7
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2292
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ad6ed5b7
编写于
11月 28, 2018
作者:
X
Xin Pan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix py3
test=develop
上级
0cc9ab3d
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
4 addition
and
4 deletion
+4
-4
paddle/fluid/API.spec
paddle/fluid/API.spec
+0
-2
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+1
-0
tools/print_signatures.py
tools/print_signatures.py
+3
-2
未找到文件。
paddle/fluid/API.spec
浏览文件 @
ad6ed5b7
...
@@ -417,8 +417,6 @@ paddle.reader.compose ArgSpec(args=[], varargs='readers', keywords='kwargs', def
...
@@ -417,8 +417,6 @@ paddle.reader.compose ArgSpec(args=[], varargs='readers', keywords='kwargs', def
paddle.reader.chain ArgSpec(args=[], varargs='readers', keywords=None, defaults=None)
paddle.reader.chain ArgSpec(args=[], varargs='readers', keywords=None, defaults=None)
paddle.reader.shuffle ArgSpec(args=['reader', 'buf_size'], varargs=None, keywords=None, defaults=None)
paddle.reader.shuffle ArgSpec(args=['reader', 'buf_size'], varargs=None, keywords=None, defaults=None)
paddle.reader.ComposeNotAligned.__init__
paddle.reader.ComposeNotAligned.__init__
paddle.reader.ComposeNotAligned.args.__init__
paddle.reader.ComposeNotAligned.message.__init__
paddle.reader.firstn ArgSpec(args=['reader', 'n'], varargs=None, keywords=None, defaults=None)
paddle.reader.firstn ArgSpec(args=['reader', 'n'], varargs=None, keywords=None, defaults=None)
paddle.reader.xmap_readers ArgSpec(args=['mapper', 'reader', 'process_num', 'buffer_size', 'order'], varargs=None, keywords=None, defaults=(False,))
paddle.reader.xmap_readers ArgSpec(args=['mapper', 'reader', 'process_num', 'buffer_size', 'order'], varargs=None, keywords=None, defaults=(False,))
paddle.reader.PipeReader.__init__ ArgSpec(args=['self', 'command', 'bufsize', 'file_type'], varargs=None, keywords=None, defaults=(8192, 'plain'))
paddle.reader.PipeReader.__init__ ArgSpec(args=['self', 'command', 'bufsize', 'file_type'], varargs=None, keywords=None, defaults=(8192, 'plain'))
...
...
paddle/scripts/paddle_build.sh
浏览文件 @
ad6ed5b7
...
@@ -459,6 +459,7 @@ function assert_api_not_changed() {
...
@@ -459,6 +459,7 @@ function assert_api_not_changed() {
# Use sed to make python2 and python3 sepc keeps the same
# Use sed to make python2 and python3 sepc keeps the same
sed
-i
's/arg0: str/arg0: unicode/g'
new.spec
sed
-i
's/arg0: str/arg0: unicode/g'
new.spec
sed
-i
"s/
\(
.*Transpiler.*
\)
.__init__ ArgSpec(args=
\[
'self'].*/
\1
.__init__ /g"
new.spec
sed
-i
"s/
\(
.*Transpiler.*
\)
.__init__ ArgSpec(args=
\[
'self'].*/
\1
.__init__ /g"
new.spec
sed
-i
's/\(.*ComposeNotAligned.*\).__init__ ArgSpec(args=.*/\1.__init__ /g'
new.spec
fi
fi
python
${
PADDLE_ROOT
}
/tools/diff_api.py
${
PADDLE_ROOT
}
/paddle/fluid/API.spec new.spec
python
${
PADDLE_ROOT
}
/tools/diff_api.py
${
PADDLE_ROOT
}
/paddle/fluid/API.spec new.spec
deactivate
deactivate
...
...
tools/print_signatures.py
浏览文件 @
ad6ed5b7
...
@@ -30,7 +30,7 @@ member_dict = collections.OrderedDict()
...
@@ -30,7 +30,7 @@ member_dict = collections.OrderedDict()
def
visit_member
(
parent_name
,
member
):
def
visit_member
(
parent_name
,
member
):
cur_name
=
"."
.
join
([
parent_name
,
member
.
__name__
])
cur_name
=
"."
.
join
([
parent_name
,
member
.
__name__
])
if
inspect
.
isclass
(
member
)
or
inspect
.
isgetsetdescriptor
(
member
)
:
if
inspect
.
isclass
(
member
):
for
name
,
value
in
inspect
.
getmembers
(
member
):
for
name
,
value
in
inspect
.
getmembers
(
member
):
if
hasattr
(
value
,
'__name__'
)
and
(
not
name
.
startswith
(
"_"
)
or
if
hasattr
(
value
,
'__name__'
)
and
(
not
name
.
startswith
(
"_"
)
or
name
==
"__init__"
):
name
==
"__init__"
):
...
@@ -43,7 +43,8 @@ def visit_member(parent_name, member):
...
@@ -43,7 +43,8 @@ def visit_member(parent_name, member):
line
.
strip
()
for
line
in
pydoc
.
render_doc
(
member
).
split
(
'
\n
'
)
line
.
strip
()
for
line
in
pydoc
.
render_doc
(
member
).
split
(
'
\n
'
)
if
"->"
in
line
if
"->"
in
line
])
])
elif
inspect
.
isgetsetdescriptor
(
member
):
return
else
:
else
:
raise
RuntimeError
(
"Unsupported generate signature of member, type {0}"
.
raise
RuntimeError
(
"Unsupported generate signature of member, type {0}"
.
format
(
str
(
type
(
member
))))
format
(
str
(
type
(
member
))))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录