Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/simplify_qdq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,16 +365,14 @@ bool compare_literals(instruction_ref ins1, instruction_ref ins2)
auto x = ins1->eval();
if(x.empty())
return false;
auto literal1 = ins1->get_literal();
if(ins2->name() == "broadcast" or ins2->name() == "multibroadcast")
ins2 = ins2->inputs().front();
auto y = ins2->eval();
if(y.empty())
return false;
auto literal2 = ins2->get_literal();

bool diff_shapes_equal_vals = false;
visit_all(ins1->get_literal(), ins2->get_literal())([&](const auto l1, const auto l2) {
visit_all(x, y)([&](const auto l1, const auto l2) {
diff_shapes_equal_vals =
std::all_of(l1.begin() + 1,
l1.end(),
Expand Down
Loading