-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[FEATURE] Restore Quantization API to MXNet #19587
Conversation
Hey @bgawrych , Thanks for submitting the PR
CI supported jobs: [sanity, website, unix-cpu, clang, unix-gpu, centos-gpu, windows-cpu, miscellaneous, centos-cpu, edge, windows-gpu] Note: |
This reverts commit a8b737a473ca6529a1969b748ea03c40e12c0798. Needs refactor of conv and fc common part
'if calib_data is not None' and 'if not data_shapes'
Conflicts: src/operator/subgraph/mkldnn/mkldnn_conv_property.h
review fixes remove unused parameters change rgb small fix add alexnet exclude fix filename suffix refactor first conv exclude v1 v2 v3 fix names of layers fix bug
@mxnet-bot run ci [unix-gpu] |
Jenkins CI successfully triggered : [unix-gpu] |
We haven't changed design of quantization - all code changes in backend are related to changed node naming conventions. I don't know if in this case we must propose new RFC as previous one was accepted and all what we have done here is bringing it back |
We don't need a new RFC since this is the same approach (quantization flow) migration from 1.x to 2.x. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and I will merge soon if no other comments.
@mxnet-bot run ci [unix-gpu] |
Jenkins CI successfully triggered : [unix-gpu] |
@szha is something wrong with unix-gpu CI? I got following error two times in a row:
but in run before in GPU: MKLDNN job it was CMakeFiles/mxnet.dir/src/operator/numpy/np_elemwise_broadcast_logic_op.cc.o I don't think it's releated to my change |
@mxnet-bot run ci [unix-gpu] |
Jenkins CI successfully triggered : [unix-gpu] |
It's great the CI passed. Thanks the great efforts from the team to re-enable quantization flow in the MXNet 2.0: ) I am going to merge this PR. @anko-intel @bgawrych |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merging now.
Description
This PR restores quantization API and some examples to master branch of MXNet. Change prepared together with @sfraczek and @grygielski
Quantization API now utilizes HybridBlock as symbol executor and new features like
optimize_for
Moreover:
Checklist
Essentials
@anko-intel @sfraczek @grygielski @TaoLv @pengzhao-intel @ciyongch