bgawrych commented on code in PR #20987:
URL: https://github.com/apache/incubator-mxnet/pull/20987#discussion_r844802489
##########
src/operator/quantization/quantize.cc:
##########
@@ -47,6 +47,24 @@ bool QuantizeStorageType(const nnvm::NodeAttrs& attrs,
return true;
}
+#if MXNET_USE_ONEDNN == 1
+static void QuantizeComputeExCPU(const nnvm::NodeAttrs& attrs,
+ const OpContext& ctx,
+ const std::vector<NDArray>& inputs,
+ const std::vector<OpReqType>& req,
+ const std::vector<NDArray>& outputs) {
+ const QuantizeParam& param = nnvm::get<QuantizeParam>(attrs.parsed);
+
+ if (SupportDNNLQuantize(param.out_type)) {
Review Comment:
you should call GetQuantizeOutputType(param) here as param.out_type can be
set to auto, which won't be supported in this case. GetQuantizeOutputType
convert auto to the proper type
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]