Skip to content

Commit 24283d9

Browse files
authored
Merge pull request #12656 from panyx0718/api
higher review requirement for adding new APIs
2 parents 4c3b165 + 1478e66 commit 24283d9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tools/diff_api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
if each_diff[0] in ['-', '?']: # delete or change API is not allowed
2121
error = True
2222
elif each_diff[0] == '+':
23-
# only new layers is allowed.
24-
if not each_diff.startswith('+ paddle.fluid.layers.'):
25-
error = True
23+
error = True
2624

2725
if each_diff[0] != ' ':
2826
print(each_diff)

0 commit comments

Comments
 (0)