Skip to content

Commit

Permalink
tests: benchdnn: fix multiple output check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
xiang1guo authored and vpirogov committed Nov 9, 2023
1 parent 5476ef7 commit 98dc9db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/benchdnn/graph/graph_bridge.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,12 @@ void check_correctness(ref_prims_t &ref_prims, size_t op_id, const args_t &args,
res->state = EXECUTED;
res->errors = 0;
cmp.set_norm_validation_mode(true);
cmp.compare(mem_fp_abx, mem_dt, prb->attr, res);
if (cmp.compare(mem_fp_abx, mem_dt, prb->attr, res) == FAIL) {
const std::string norm_check_fail = "Norm check failed, quit!";
BENCHDNN_PRINT(
0, "Output arg %d: %s\n", arg, norm_check_fail.c_str());
break;
}
}
}
}
Expand Down

0 comments on commit 98dc9db

Please sign in to comment.