Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix clip extra when QAT export model #38323

Merged
merged 2 commits into from
Dec 22, 2021

Conversation

yghstill
Copy link
Contributor

PR types

Bug fixes

PR changes

APIs

Describe

When export model in QAT, clip_extra=True, which may cause some quantitative model fail to run normally on Paddle Lite. So reset clip_extra=False.

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@@ -173,7 +173,7 @@ def build_program(main, startup, is_test):
'quant_scale_model' + dev_name, ['image', 'label'], [loss],
exe,
server_program,
clip_extra=True)
clip_extra=False)
Copy link
Contributor

Choose a reason for hiding this comment

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

单测可以不改吗?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -145,7 +145,7 @@ def build_program(main, startup, is_test):
'./infer_model', ['image', 'label'], [loss],
exe,
test_program,
clip_extra=True)
clip_extra=False)
Copy link
Contributor

Choose a reason for hiding this comment

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

单测可以不改吗

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@winter-wang winter-wang left a comment

Choose a reason for hiding this comment

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

LGTM

@yghstill yghstill merged commit 142ea17 into PaddlePaddle:develop Dec 22, 2021
@yghstill yghstill deleted the fix_quant_clip_extra branch December 22, 2021 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants