Skip to content

Commit 22c69b9

Browse files
Update backends/vulkan/runtime/graph/ops/impl/Reduce.cpp
Co-authored-by: Mateusz Sluszniak <[email protected]>
1 parent b9e001b commit 22c69b9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

backends/vulkan/runtime/graph/ops/impl/Reduce.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,12 @@ void add_reduce2d_node(
232232
const ValueRef dim_ref = graph.get_or_add_value_for_int(dim_val); \
233233
return add_reduce_node( \
234234
graph, args[0], dim_ref, args[out_arg_idx], #op_name); \
235-
} else if (dims_list.size() == 2) { \
235+
}
236+
if (dims_list.size() == 2) { \
236237
return add_reduce2d_node( \
237238
graph, args[0], args[1], args[out_arg_idx], #op_name); \
238-
} else { \
239-
VK_CHECK_COND(false, "Only 1 or 2 dimensions supported"); \
239+
}
240+
VK_CHECK_COND(false, "Only 1 or 2 dimensions supported"); \
240241
} \
241242
}
242243

0 commit comments

Comments
 (0)