Skip to content

Commit 9e34070

Browse files
committed
cpu: matmul: disallow int4 woq w/a apply_to_int_ in ref
1 parent d22185c commit 9e34070

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/cpu/matmul/ref_matmul.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ struct ref_matmul_t : public primitive_t {
6464
|| utils::one_of(wei_type, bf16, f16, u8,
6565
s8, u4, s4, f4_e3m0)),
6666
VERBOSE_UNSUPPORTED_DT);
67-
/* int8 weights decompression support */
68-
VDISPATCH_MATMUL(IMPLICATION(utils::one_of(wei_type, u8, s8),
69-
attr_.mayiconvert(wei_type, src_type)),
67+
/* int weights decompression support */
68+
VDISPATCH_MATMUL(
69+
IMPLICATION(utils::one_of(wei_type, u8, s8, u4, s4),
70+
attr_.mayiconvert(wei_type, src_type)),
7071
VERBOSE_UNSUPPORTED_DT);
7172
VDISPATCH_MATMUL(IMPLICATION(src_type == f16,
7273
utils::one_of(dst_type, f32, f16)),

0 commit comments

Comments
 (0)