Skip to content

Commit

Permalink
Revert "tile (PaddlePaddle#60261)"
Browse files Browse the repository at this point in the history
This reverts commit 203754e.
  • Loading branch information
hanhaowen-mt committed May 13, 2024
1 parent 16939be commit b1b5146
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions paddle/fluid/inference/tensorrt/op_teller.cc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ struct SimpleOpTypeSetTeller : public Teller {
#endif
#if IS_TRT_VERSION_GE(7000)
teller_set.insert("tile");
int8_teller_set.insert("tile");
teller_set.insert("flatten_contiguous_range");
int8_teller_set.insert("flatten_contiguous_range");
teller_set.insert("rnn");
Expand Down Expand Up @@ -2303,20 +2302,15 @@ struct SimpleOpTypeSetTeller : public Teller {
if (!with_dynamic_shape) {
if (tile_inputs.find("repeat_times_tensor") != tile_inputs.end()) {
if (!desc.Input("repeat_times_tensor").empty()) {
VLOG(3) << "Tile op: repeat_times_tensor is not empty.";
return false;
}
}
if (tile_inputs.find("RepeatTimes") != tile_inputs.end()) {
if (!desc.Input("RepeatTimes").empty()) {
VLOG(3) << "Tile op: RepeatTimes is not empty.";
return false;
}
}
if (!desc.HasAttr("repeat_times")) {
VLOG(3) << "Tile op:`repeat_times` is not set.";
return false;
}
if (!desc.HasAttr("repeat_times")) return false;
}
}
#endif
Expand Down

0 comments on commit b1b5146

Please sign in to comment.