Skip to content

Commit 2c5ae88

Browse files
AsyaProninadmatveev
authored andcommitted
Added i8 for DQMatMulCwi (openvinotoolkit#27112)
### Details: - *Added i8 for DQMatMulCwi* ### Tickets: - *N/A* --------- Co-authored-by: Dmitry Matveev <dmitry.matveev@intel.com>
1 parent 417f98b commit 2c5ae88

File tree

1 file changed

+3
-2
lines changed
  • src/plugins/intel_npu/src/plugin/npuw/partitioning/patterns

1 file changed

+3
-2
lines changed

src/plugins/intel_npu/src/plugin/npuw/partitioning/patterns/opt.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,9 @@ DQMatMulCWi::DQMatMulCWi() {
149149

150150
auto qcoeff_shape = matched_qcoeff->output(0).get_shape();
151151

152-
if (ov::element::i4 == matched_qweight->get_element_type() && qcoeff_shape[1] == 1 &&
153-
!matched_matmul->get_transpose_a() && matched_matmul->get_transpose_b()) {
152+
if ((ov::element::i4 == matched_qweight->get_element_type() ||
153+
ov::element::i8 == matched_qweight->get_element_type()) &&
154+
qcoeff_shape[1] == 1 && !matched_matmul->get_transpose_a() && matched_matmul->get_transpose_b()) {
154155
auto matched_node_cvtw = node_to_output.at(qcvtw).get_node_shared_ptr();
155156
auto matched_node_cvtm = node_to_output.at(qcvtm).get_node_shared_ptr();
156157
auto matched_node_muls = node_to_output.at(qmuls).get_node_shared_ptr();

0 commit comments

Comments
 (0)