Skip to content

Commit

Permalink
fix matmul translation
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Sep 11, 2023
1 parent ca45133 commit 2ea76c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hir/src/ops/matmul.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl Expansion for MatMulInference {
}
if implicit_n {
let b = InOut::In(1);
let n_axis = axes.axis((b, axes.rank(b) - 2))?;
let n_axis = axes.axis((b, axes.rank(b) - 1))?;
axes = axes.remove_output_axis(0, n_axis.outputs[0][0])?;
}
target.wire_node(
Expand Down

0 comments on commit 2ea76c0

Please sign in to comment.