Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[NPUW] Add optional Convert to SLICE_OUT (#30569)

Alexey Smirnovd66e8a5e418e
diff --git a/src/plugins/intel_npu/src/plugin/npuw/partitioning/patterns/opt.cpp b/src/plugins/intel_npu/src/plugin/npuw/partitioning/patterns/opt.cpp
index 4536aaa408d..2053f5a2785 100644
--- a/src/plugins/intel_npu/src/plugin/npuw/partitioning/patterns/opt.cpp
+++ b/src/plugins/intel_npu/src/plugin/npuw/partitioning/patterns/opt.cpp
@@ -1611,7 +1611,8 @@ CompressDictMatMulf32::CompressDictMatMulf32(Context::Ref ctx) {
SliceLastMatmul::SliceLastMatmul() {
auto matmul = opp::wrap_type<ov::op::v0::MatMul>({opp::any_input(), opp::any_input()});
- auto res = opp::wrap_type<ov::op::v0::Result>({matmul});
+ auto convert = opp::optional<ov::op::v0::Convert>({matmul->output(0)});
+ auto res = opp::wrap_type<ov::op::v0::Result>({convert});
// Note: Use [=] to make sure the above objects stay alive in the callback
auto callback = [=](ov::pass::pattern::Matcher& m) {