fix conv unit test for groupwise quantization and pre-packing (#15761)
authorJongsoo Park <jongsoo@fb.com>
Mon, 7 Jan 2019 19:04:22 +0000 (11:04 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 7 Jan 2019 19:08:32 +0000 (11:08 -0800)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15761

As title says.

Reviewed By: csummersea

Differential Revision: D13587727

fbshipit-source-id: f0631b8cbb89d65a1d952bc25b463de23de93bec

caffe2/quantization/server/conv_groupwise_dnnlowp_op_test.py

index 8e73edd..e3ed280 100644 (file)
@@ -124,7 +124,11 @@ class GroupWiseDNNLowPOpConvTest(hu.HypothesisTestCase):
 
             conv = core.CreateOperator(
                 op_type,
-                ["X_q" if do_quantize else "X", "W", "b"],
+                [
+                    "X_q" if do_quantize else "X",
+                    "W_packed" if do_prepack_weight else "W",
+                    "b",
+                ],
                 ["Y_q" if do_dequantize else "Y"],
                 stride=stride,
                 kernel=kernel,