Skip to content

Commit 5fc7b98

Browse files
tests: benchdnn: matmul: ensure mx scale value within range
1 parent f98b30f commit 5fc7b98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/benchdnn/matmul/ref_matmul.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ void compute_ref_matmul(const prb_t *prb, const args_t &args) {
234234
}
235235
dst_scale = round_to_nearest_representable(
236236
dst_scale_dt, dst_scale)
237-
/ max_dt(prb->dst_dt());
237+
/ round_to_nearest_representable(
238+
dst_scale_dt, max_dt(prb->dst_dt()));
238239
const auto dst_off = dst_off_f(
239240
prb, mb, mc * dst_M_group, nc * dst_N_group);
240241
const auto dscale_idx = dst_m.get_idx(dst_off,

0 commit comments

Comments
 (0)