Skip to content

Jfdong/quantize conv integer bias#1827

Merged
askhade merged 4 commits intomicrosoft:askhade/quantization_and_caliberationfrom
jfdong:jfdong/quantize_convInteger_bias
Oct 21, 2019
Merged

Jfdong/quantize conv integer bias#1827
askhade merged 4 commits intomicrosoft:askhade/quantization_and_caliberationfrom
jfdong:jfdong/quantize_convInteger_bias

Conversation

@jfdong
Copy link

@jfdong jfdong commented Sep 12, 2019

Description: The changes fix quantized model "opset" to 11 to support DynamicQuantizeLinear operator and add bias in convInteger node to make resnet50 be quantized correctly.

Motivation and Context
After this commit, we got 77% accuracy on quantized resnet50 model in MLPerf with 5000 images.

@jfdong jfdong marked this pull request as ready for review September 12, 2019 22:00
@jfdong jfdong requested a review from a team as a code owner September 12, 2019 22:00
@jfdong
Copy link
Author

jfdong commented Sep 26, 2019

Added a _convert_clip_node function to change clip node according to Opset 11 requirement. The convert pull min and max values from Clip operators attributes and put them into inputs field. After the convert, Clip node should be able to run correctly in Opset 11 runtime.

@jfdong jfdong force-pushed the jfdong/quantize_convInteger_bias branch from fdc9233 to e3b1111 Compare October 2, 2019 17:39
@askhade askhade merged commit 2dc5002 into microsoft:askhade/quantization_and_caliberation Oct 21, 2019
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