Skip to content

Commit

Permalink
cpplint set version 1.6.0;test=document_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
betterpig committed Jun 2, 2022
1 parent 1f9ed5e commit efc3795
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 3 additions & 1 deletion paddle/fluid/operators/abs_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ DECLARE_INFER_SHAPE_FUNCTOR(abs, AbsInferShapeFunctor,

namespace ops = paddle::operators;

REGISTER_OPERATOR(abs, ops::AbsOp, ops::AbsOpMaker,ops::AbsGradMaker<paddle::framework::OpDesc>,ops::AbsGradMaker<paddle::imperative::OpBase>,
REGISTER_OPERATOR(abs, ops::AbsOp, ops::AbsOpMaker,
ops::AbsGradMaker<paddle::framework::OpDesc>,
ops::AbsGradMaker<paddle::imperative::OpBase>,
AbsInferShapeFunctor);

REGISTER_OPERATOR(abs_grad, ops::AbsGradOp,
Expand Down
8 changes: 4 additions & 4 deletions paddle/scripts/paddle_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,11 @@ function check_style() {

commit_files=on
for file_name in `git diff --numstat ${BRANCH} |awk '{print $NF}'`;do
if ! pre-commit run --verbose --files $file_name ; then
if ! pre-commit run --files $file_name ; then
commit_files=off
fi
done

export PATH=${OLD_PATH}

if [ $commit_files == 'off' ];then
Expand Down Expand Up @@ -3347,7 +3347,7 @@ function main() {
;;
build_and_check_gpu)
set +e

set +x
check_style_info=$(check_style)
check_style_code=$?
example_info_gpu=""
Expand All @@ -3359,7 +3359,7 @@ function main() {
example_info=$(exec_samplecode_test cpu)
example_code=$?
summary_check_problems $check_style_code $[${example_code_gpu} + ${example_code}] "$check_style_info" "${example_info_gpu}\n${example_info}"

set -x
assert_api_spec_approvals
;;
check_whl_size)
Expand Down
1 change: 0 additions & 1 deletion tools/codestyle/cpplint_pre_commit.hook
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ TOTAL_ERRORS=0
readonly VERSION="1.6.0"

version=$(cpplint --version)
echo ${version}

if [[ ! $TRAVIS_BRANCH ]]; then
# install cpplint on local machine.
Expand Down

1 comment on commit efc3795

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.