未验证 提交 2755507c 编写于 作者: Y Yuanle Liu 提交者: GitHub

fix op_desc set attr bug (#50281)

上级 9b3a41b1
......@@ -57,6 +57,7 @@ void MapOp2AnotherPass::ApplyImpl(ir::Graph* graph) const {
if (groups > 1) {
#if CUDNN_VERSION >= 8100
op_desc->SetType(replaced_map[op_type]);
op_desc->RemoveAttr("use_cudnn");
op_desc->SetAttr("use_cudnn", true);
#endif
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册