Skip to content

Commit 6b3ffe9

Browse files
authored
cherry_pick conv2d omission (#37419)
1 parent 9ffb43b commit 6b3ffe9

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

paddle/fluid/inference/tensorrt/op_teller.cc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,6 @@ bool OpTeller::Tell(const framework::ir::Node* node, bool use_no_calib_int8,
184184
return false;
185185

186186
for (auto& teller : tellers_) {
187-
if (op_type == "depthwise_conv2d") {
188-
std::vector<int> paddings =
189-
BOOST_GET_CONST(std::vector<int>, desc.GetAttr("paddings"));
190-
191-
if (paddings.size() > 2) return false;
192-
}
193-
194187
if (op_type == "relu" || op_type == "relu6" || op_type == "tanh" ||
195188
op_type == "sigmoid") {
196189
auto* block = desc.Block();

0 commit comments

Comments
 (0)