未验证 提交 87fbc5e4 编写于 作者: F feng_shuai 提交者: GitHub

fix: oss just support sm>=75 (#48731)

上级 17879045
......@@ -400,7 +400,8 @@ class MultiheadMatMulOpConverter : public OpConverter {
}
} else {
if (input_dims.d[1] <= 384 && !bias_qk_attr &&
engine_->precision() != AnalysisConfig::Precision::kFloat32) {
engine_->precision() != AnalysisConfig::Precision::kFloat32 &&
platform::GetGPUComputeCapability(0) >= 75) {
/*
* input_dims.d[0]: batch(-1)
* input_dims.d[1]: length:256
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册