Skip to content

Commit

Permalink
scale trt converter support int64 (#53388)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanlehome authored Apr 27, 2023
1 parent 1c97aa6 commit 182b6f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion paddle/fluid/inference/tensorrt/convert/scale_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace inference {
namespace tensorrt {

/*
* ConcatOp
* Scale Op
*/
class ScaleOpConverter : public OpConverter {
public:
Expand Down
6 changes: 4 additions & 2 deletions paddle/fluid/inference/tensorrt/op_teller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1184,10 +1184,12 @@ struct SimpleOpTypeSetTeller : public Teller {
return false;
}
} else {
// At present, only support float32 or float16 or int32 into trt.
// At present, only support float32 or float16 or int32 or int64 into
// trt.
if (!(dtype == framework::proto::VarType::FP32 ||
dtype == framework::proto::VarType::FP16 ||
dtype == framework::proto::VarType::INT32)) {
dtype == framework::proto::VarType::INT32 ||
dtype == framework::proto::VarType::INT64)) {
return false;
}
}
Expand Down

0 comments on commit 182b6f8

Please sign in to comment.