Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
[REFACTOR] Refactor test_quantize.py to use Gluon API (#20227)
Browse files Browse the repository at this point in the history
* Refactor test_quantization to gluon API

* review

* Apply review suggestions

* Skip flaky test
  • Loading branch information
bgawrych authored Jun 17, 2021
1 parent 4f7f62c commit b54b7f3
Show file tree
Hide file tree
Showing 2 changed files with 486 additions and 389 deletions.
2 changes: 0 additions & 2 deletions src/operator/quantization/mkldnn/mkldnn_quantized_conv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ static void MKLDNNQuantizedConvForward(const nnvm::NodeAttrs& attrs,
const std::vector<NDArray> &in_data,
const std::vector<OpReqType> &req,
const std::vector<NDArray> &out_data) {
CHECK_EQ(in_data[0].dtype(), mshadow::kUint8)
<< "mkldnn_quantized_conv op only supports uint8 as input type";
TmpMemMgr::Get()->Init(ctx.requested[conv::kTempSpace]);
NDArray weight = in_data[conv::kWeight];
ConvolutionParam param = nnvm::get<ConvolutionParam>(attrs.parsed);
Expand Down
Loading

0 comments on commit b54b7f3

Please sign in to comment.