Skip to content
Merged
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
4 changes: 2 additions & 2 deletions paddle/fluid/framework/ir/is_test_pass_tester.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ void SetOp(ProgramDesc* prog,
const std::string& name,
const std::vector<std::string>& inputs,
const std::vector<std::string>& outputs,
bool use_mkldnn = false,
bool use_onednn = false,
ISTEST_STATE is_test = ISTEST_STATE::UNSET) {
auto* op = prog->MutableBlock(0)->AppendOp();
op->SetType(type);
op->SetAttr("name", name);
op->SetInput("X", inputs);
op->SetOutput("Out", outputs);
op->SetAttr("use_mkldnn", use_mkldnn);
op->SetAttr("use_onednn", use_onednn);
if (is_test == ISTEST_STATE::UNSET)
op->MutableAttrMap()->erase("is_test");
else if (is_test == ISTEST_STATE::FALSE)
Expand Down
Loading