Skip to content

Commit

Permalink
Added i8 for DQMatMulCwi (#27112)
Browse files Browse the repository at this point in the history
### Details:
 - *Added i8 for DQMatMulCwi*

### Tickets:
 - *N/A*

---------

Co-authored-by: Dmitry Matveev <dmitry.matveev@intel.com>
  • Loading branch information
AsyaPronina and dmatveev authored Oct 21, 2024
1 parent 5f4a445 commit 8a33df7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ DQMatMulCWi::DQMatMulCWi() {

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

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

0 comments on commit 8a33df7

Please sign in to comment.