bgawrych opened a new pull request #19587: URL: https://github.com/apache/incubator-mxnet/pull/19587
## 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: - enabled numpy semantics support - improved custom calibration flow (user can now use layer names which need calibration in their layer output collectors) - renamed quantize_net_v2 to quantize_net - using DataLoader instead of DataIter in model calibration - retained quantize_model and quantize_model_mkldnn which works with symbol ## Checklist ## ### Essentials ### - [x] PR's title starts with a category (e.g. [BUGFIX], [MODEL], [TUTORIAL], [FEATURE], [DOC], etc) - [x] Changes are complete (i.e. I finished coding on this PR) - [x] All changes have test coverage - [x] Code is well-documented @anko-intel @sfraczek @grygielski @TaoLv @pengzhao-intel @ciyongch ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
