未验证 提交 24283d9f 编写于 作者: X Xin Pan 提交者: GitHub

Merge pull request #12656 from panyx0718/api

higher review requirement for adding new APIs
...@@ -20,9 +20,7 @@ for each_diff in result: ...@@ -20,9 +20,7 @@ for each_diff in result:
if each_diff[0] in ['-', '?']: # delete or change API is not allowed if each_diff[0] in ['-', '?']: # delete or change API is not allowed
error = True error = True
elif each_diff[0] == '+': elif each_diff[0] == '+':
# only new layers is allowed. error = True
if not each_diff.startswith('+ paddle.fluid.layers.'):
error = True
if each_diff[0] != ' ': if each_diff[0] != ' ':
print(each_diff) print(each_diff)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册