diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 24e488afba4e5cfe0ed6019a0e2f4175fb08c3e0..aa2d2e0db1e0031f3d46b94b75f1c2761026b32e 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -459,9 +459,10 @@ function assert_api_not_changed() { # Use sed to make python2 and python3 sepc keeps the same sed -i 's/arg0: str/arg0: unicode/g' new.spec sed -i "s/\(.*Transpiler.*\).__init__ ArgSpec(args=\['self'].*/\1.__init__ /g" new.spec - # ComposeNotAligned has significant different between py2 and py3 - sed -i '/.*ComposeNotAligned.*/d' new.spec fi + # ComposeNotAligned has significant difference between py2 and py3 + sed -i '/.*ComposeNotAligned.*/d' new.spec + python ${PADDLE_ROOT}/tools/diff_api.py ${PADDLE_ROOT}/paddle/fluid/API.spec new.spec deactivate }