Skip to content

Commit 1478e66

Browse files
committed
higher review requirement for adding new APIs
1 parent 66be532 commit 1478e66

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)