Skip to content

Commit 3fde20b

Browse files
committed
Apply comments
1 parent 06b154a commit 3fde20b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/transformations/src/transformations/common_optimizations/fuse_moe_experts.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@ ov::pass::FuseMOEExperts::FuseMOEExperts() : MultiMatcher("FuseMOEExperts") {
396396
}
397397

398398
auto fused = std::make_shared<ov::op::v0::Concat>(inputs, 0);
399-
if (std::all_of(inputs.begin(), inputs.end(), [](const Output<Node>& input) {
400-
return ov::as_type_ptr<ov::op::v0::Constant>(input.get_node_shared_ptr()) != nullptr;
399+
if (std::all_of(inputs.begin(), inputs.end(), [](const auto& input) {
400+
return ov::op::util::is_constant(input.get_node());
401401
})) {
402402
// postponed_constant attribute is needed to perform constant folding on serialization step
403403
fused->get_rt_info()["postponed_constant"] = true;

0 commit comments

Comments
 (0)