fix bug when falling back to acc32 when weight is prepacked (#18974)
authorSummer Deng <summerdeng@fb.com>
Sun, 7 Apr 2019 04:50:28 +0000 (21:50 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sun, 7 Apr 2019 04:53:08 +0000 (21:53 -0700)
commit907b4c5890a9a9e5508114ffaf8e898ef69a2cb2
tree3ebadb0143f6c9a30994e7e43bf006fd08f48e9d
parentdbd9971dd2c4fad595592c0dde5cc8f3fc1d54a1
fix bug when falling back to acc32 when weight is prepacked (#18974)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18974

When the weight is prepacked and it doesn't contain a prepacked weight for acc32, we shouldn't fallback to acc32.

Reviewed By: bddppq

Differential Revision: D14814067

fbshipit-source-id: aec917322de695e283f0aca1e930c5603d196404
caffe2/quantization/server/conv_dnnlowp_acc16_op.cc
caffe2/quantization/server/conv_dnnlowp_acc16_op_test.py
caffe2/quantization/server/conv_groupwise_dnnlowp_acc16_op_test.py
caffe2/quantization/server/fbgemm_pack_op.cc