From 5baccfddd3a39d022f6b96b887104faf61aeeef1 Mon Sep 17 00:00:00 2001 From: cc <52520497+juncaipeng@users.noreply.github.com> Date: Wed, 1 Sep 2021 11:22:28 +0800 Subject: [PATCH] add support ops for quantization (#35312) --- .../paddle/fluid/contrib/slim/quantization/quantization_pass.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/paddle/fluid/contrib/slim/quantization/quantization_pass.py b/python/paddle/fluid/contrib/slim/quantization/quantization_pass.py index c2d7a9bb4d5..01b54f8f13a 100644 --- a/python/paddle/fluid/contrib/slim/quantization/quantization_pass.py +++ b/python/paddle/fluid/contrib/slim/quantization/quantization_pass.py @@ -133,6 +133,7 @@ _op_real_in_out_name = { "pad2d": [["X"], ["Out"]], "flatten": [["X"], ["Out"]], "flatten2": [["X"], ["Out"]], + "unsqueeze2": [["X"], ["Out"]], } _conv_ops = ['conv2d', 'depthwise_conv2d', 'conv2d_transpose'] -- GitLab