Skip to content

Commit 53b96da

Browse files
committed
fixup: src: introduce quant_entry_t and refactor arg_scales_t to rely on it
Case with different mask is not supported if only both scales were specified.
1 parent 121e43c commit 53b96da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/cpu/x64/jit_uni_reorder_utils.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,11 @@ status_t prb_init(prb_t &p, const memory_desc_t &imd, const memory_desc_t &omd,
286286
= dst_mask == 0 ? scale_type_t::COMMON : scale_type_t::MANY;
287287
}
288288

289-
if (src_mask != dst_mask) return status::unimplemented;
289+
VDISPATCH_REORDER_IC(
290+
IMPLICATION(p.src_scale_type != scale_type_t::NONE
291+
&& p.dst_scale_type != scale_type_t::NONE,
292+
src_mask == dst_mask),
293+
VERBOSE_UNSUPPORTED_SCALES_CFG);
290294

291295
p.scale_adjust = (om_d.extra().flags & memory_extra_flags::scale_adjust)
292296
? om_d.extra().scale_adjust

0 commit comments

Comments
 (0)