-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NPUW] Recent coverity fix #26905
[NPUW] Recent coverity fix #26905
Conversation
@@ -473,7 +473,6 @@ DQMatMulGQiP::DQMatMulGQiP(Context::Ref ctx) { | |||
auto qweight_shape = matched_qweight->output(0).get_shape(); | |||
auto qcoeff_shape = matched_qcoeff->output(0).get_shape(); | |||
auto act_shape = matched_out_mmi.get_shape(); | |||
auto out_shape = matched_node_matmul->output(0).get_shape(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
@@ -1034,10 +1032,10 @@ HostGather::HostGather(Context::Ref ctx) { | |||
auto callback = [=](ov::pass::pattern::Matcher& m) { | |||
auto& node_to_output = m.get_pattern_value_map(); | |||
auto out_shape = node_to_output.at(qgthrw).get_shape(); | |||
auto matched_out_qweight = node_to_output.at(qweight); | |||
auto& matched_out_qweight = node_to_output.at(qweight); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't be const, yes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, coverity requested auto&
@@ -1173,8 +1171,6 @@ DQUnpackDictMatMulCWu::DQUnpackDictMatMulCWu(Context::Ref ctx) { | |||
auto matched_result = std::static_pointer_cast<ov::op::v0::Result>(matched_node_res); | |||
|
|||
auto qcoeff_shape = matched_qcoeff->output(0).get_shape(); | |||
auto qzerop_shape = matched_qzerop->output(0).get_shape(); | |||
auto act_shape = matched_mmi.get_shape(); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
@@ -1228,8 +1224,7 @@ DQUnpackDictMatMulGQi::DQUnpackDictMatMulGQi(Context::Ref ctx) { | |||
auto matched_matmul = std::static_pointer_cast<ov::op::v0::MatMul>(matched_node_matmul); | |||
auto matched_result = std::static_pointer_cast<ov::op::v0::Result>(matched_node_res); | |||
|
|||
auto qcoeff_shape = matched_qcoeff->output(0).get_shape(); | |||
auto act_shape = matched_mmi.get_shape(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also not used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No moves - already good :)
No description provided.