From 8487f79c58de811c097a5e7aa8b691a112416981 Mon Sep 17 00:00:00 2001 From: Wangzheee <634486483@qq.com> Date: Fri, 9 Sep 2022 18:50:41 +0800 Subject: [PATCH] remove skip_quant in op_teller (#45872) --- paddle/fluid/inference/tensorrt/op_teller.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/paddle/fluid/inference/tensorrt/op_teller.cc b/paddle/fluid/inference/tensorrt/op_teller.cc index 957241cb3e8..af9973bf87d 100644 --- a/paddle/fluid/inference/tensorrt/op_teller.cc +++ b/paddle/fluid/inference/tensorrt/op_teller.cc @@ -296,12 +296,6 @@ bool OpTeller::Tell(const framework::ir::Node* node, bool with_dynamic_shape) { const std::string op_type = node->Op()->Type(); const framework::OpDesc desc = *node->Op(); - // do not support the op which is labeled the `skip_quant` - if ((desc.HasAttr("namescope") && - PADDLE_GET_CONST(std::string, desc.GetAttr("op_namescope")) == - "/skip_quant_2/") || - desc.HasAttr("skip_quant")) - return false; for (auto& teller : tellers_) { std::unordered_set act_op_list = { -- GitLab