We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1185849 commit 981e961Copy full SHA for 981e961
src/frontends/paddle/src/internal/pass/transform_if.cpp
@@ -25,10 +25,13 @@ ov::frontend::paddle::pass::TransformIf::TransformIf(std::vector<std::shared_ptr
25
26
matcher_pass_callback callback = [funcs](pattern::Matcher& m) -> bool {
27
const auto conditional_block = ov::as_type_ptr<ov::op::internal::ConditionalBlock>(m.get_match_root());
28
+ if (!conditional_block) {
29
+ return false;
30
+ }
31
const auto mask_idx = conditional_block->get_input_size() - 1;
32
const auto cond = conditional_block->get_input_node_shared_ptr(mask_idx);
33
- if (!conditional_block || !cond) {
34
+ if (!cond) {
35
return false;
36
}
37
0 commit comments