Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ void SetOp(ProgramDesc* prog,
const std::unordered_map<std::string, std::string>& attrs = {}) {
auto* op = prog->MutableBlock(0)->AppendOp();
op->SetType(type);
op->SetAttr("use_mkldnn", true);
op->SetAttr("use_onednn", true);
op->SetAttr("name", name);
if (!attrs.empty())
for (auto& attr : attrs) op->SetAttr(attr.first, attr.second);
Expand Down
2 changes: 1 addition & 1 deletion paddle/fluid/ir_adaptor/translator/op_translator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ inline std::string GetPrefix(pir::IrContext* ctx, const OpDesc& op_desc) {
paddle::dialect::IsOneDNNOnlyOp(op_desc.Type())) {
if (!HasOpInfo(ctx, op_desc, kOneDNNTargetDialectPrefix)) {
VLOG(3) << op_desc.Type()
<< "'s use_mkldnn == True, but PIR not support OneDNN for this "
<< "'s use_onednn == True, but PIR not support OneDNN for this "
"op right now.";
return kTargetDialectPrefix;
} else {
Expand Down