ZhennanQin commented on a change in pull request #13530: Integrate MKLDNN
Conv1d and support 3d layout
URL: https://github.com/apache/incubator-mxnet/pull/13530#discussion_r240441618
##########
File path: python/mxnet/contrib/quantization.py
##########
@@ -488,6 +488,9 @@ def quantize_model(sym, arg_params, aux_params,
A tuple of quantized symbol, quantized arg_params, and aux_params.
-------
"""
+ if ctx == cpu(0) and len(calib_data.provide_data[0].shape) != 3:
+ raise ValueError('MKL-DNN quantized OPs temporary support 4d layout.')
Review comment:
Please don't check calib_data as quantization flow support non-calib mode.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services