未验证 提交 182b6f83 编写于 作者: Y Yuanle Liu 提交者: GitHub

scale trt converter support int64 (#53388)

上级 1c97aa69
......@@ -19,7 +19,7 @@ namespace inference {
namespace tensorrt {
/*
* ConcatOp
* Scale Op
*/
class ScaleOpConverter : public OpConverter {
public:
......
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册