Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
dayo09 committed Jan 15, 2025
1 parent a1fdd22 commit 6b0acd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/luci/pass/src/ExpandBroadcastConstPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ luci::CircleConst *create_expanded_constant(luci::CircleConst *node, luci::Circl
constant->rank(node->rank());
constant->shape_status(luci::ShapeStatus::VALID);

uint32_t node_size = node->size<loco::DataType::FLOAT32>();
uint32_t constant_size = 1;
for (uint32_t i = 0; i < successor->rank(); ++i)
{
Expand All @@ -65,6 +64,7 @@ luci::CircleConst *create_expanded_constant(luci::CircleConst *node, luci::Circl
auto const node_data = &node->at<loco::DataType::FLOAT32>(0);
auto const constant_data = &constant->at<loco::DataType::FLOAT32>(0);

assert(successor->rank() > 1);
if (successor->rank() == 2)
{
auto const N = successor->dim(successor->rank() - 2).value();
Expand Down

0 comments on commit 6b0acd5

Please sign in to comment.