Skip to content

Commit

Permalink
restore assert
Browse files Browse the repository at this point in the history
  • Loading branch information
glistening committed Jan 9, 2024
1 parent 7ec1dd3 commit 3b5772c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ void PermutationInsertionPass::callback(const ir::OperandIndex &index, ir::Opera
const auto op_layout = op_li->layout();
const backend::Backend *backend = op_li->backend();
assert(backend);
assert(operation.getInputs().contains(index));

auto new_index = factor_to_index.at({backend, op_layout});
if (index != new_index)
Expand Down

0 comments on commit 3b5772c

Please sign in to comment.