From 1478e664bf0d28078ff8be4e628f9caa67e55687 Mon Sep 17 00:00:00 2001 From: Xin Pan Date: Mon, 13 Aug 2018 13:13:37 +0800 Subject: [PATCH] higher review requirement for adding new APIs --- tools/diff_api.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/diff_api.py b/tools/diff_api.py index cf9f2c72cb7..97c739ed2a5 100644 --- a/tools/diff_api.py +++ b/tools/diff_api.py @@ -20,9 +20,7 @@ for each_diff in result: if each_diff[0] in ['-', '?']: # delete or change API is not allowed error = True elif each_diff[0] == '+': - # only new layers is allowed. - if not each_diff.startswith('+ paddle.fluid.layers.'): - error = True + error = True if each_diff[0] != ' ': print(each_diff) -- GitLab