Skip to content

Commit

Permalink
fix #1581 (output of matmul encoding a matvec)
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Nov 26, 2024
1 parent 13af08b commit dba3e2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hir/src/ops/matmul.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ impl Expansion for MatMulInference {
let mn = if self.c_trans { "nm" } else { "mn" };
let axes: AxesMapping = if a_rank == 1 {
let prefix: String = ('a'..).take(b_rank - 2).collect();
format!("k,{prefix}{kn}->{prefix}{mn}").parse()?
format!("k,{prefix}{kn}->{prefix}n").parse()?
} else if b_rank == 1 {
let prefix: String = ('a'..).take(a_rank - 2).collect();
format!("{prefix}{mk},k->{prefix}{mn}").parse()?
format!("{prefix}{mk},k->{prefix}m").parse()?
} else {
let c_rank = b_rank.max(a_rank);
let a_prefix: String =
Expand Down

0 comments on commit dba3e2e

Please sign in to comment.