Skip to content

Commit d29bb10

Browse files
authored
NPUW: Fix coverity hit in pyramid_attention (#34642)
### Tickets: - CVS-181398 ### AI Assistance: - *AI assistance used: no*
1 parent 04f948c commit d29bb10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plugins/intel_npu/src/plugin/npuw/pyramid_attention.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (C) 2018-2026 Intel Corporation
22
// SPDX-License-Identifier: Apache-2.0
3+
//
34

45
#include "pyramid_attention.hpp"
56

@@ -275,6 +276,7 @@ std::optional<PyramidValidationResult> validate_and_setup_pyramid_attention(cons
275276
}
276277

277278
auto concat_op = std::dynamic_pointer_cast<ov::op::v0::Concat>(concat_node);
279+
NPUW_ASSERT(concat_op != nullptr);
278280
const auto& concat_out_shape = concat_op->get_output_partial_shape(0);
279281
const auto concat_axis =
280282
ov::util::try_normalize_axis(concat_op->get_axis(), concat_out_shape.rank(), *concat_op);

0 commit comments

Comments
 (0)