Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BinEinsum to suite-unit #1630

Merged
merged 9 commits into from
Jan 31, 2025
Merged

Add BinEinsum to suite-unit #1630

merged 9 commits into from
Jan 31, 2025

Conversation

LouisChourakiSonos
Copy link
Collaborator

No description provided.

}
AxesOrPatch::NotAMatMul(axes) => {
bail!("{} is not a matmul because of axis {}", op.axes, axes.iter().map(|a| a.repr).join(", ") )
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird formatting here.

})
})
.prop_map(|(supp_m_axes, supp_n_axes, iter_axes, trivial_m_axes, trivial_n_axes)| {
dbg!(supp_m_axes, supp_n_axes, iter_axes, trivial_m_axes, trivial_n_axes);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want this ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, I forgot to remove it

let b_axes: Vec<char> =
(n_axes.clone() + "g" + &trivial_n_axes + &iter_axes + "k").chars().collect();
let c_axes: Vec<char> =
(m_axes + &n_axes + "ag" + &trivial_m_axes + &trivial_n_axes + &iter_axes)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for our sanity, is it possible to re-arrange letters affectation so that "a" becomes "m" and "g" besomes "n" ? :)

//if let Some(c) = &self.unicast_add_constant {
// let c = model.add_const("c", c.clone())?;
// output = model.wire_node("add", tract_core::ops::math::add(), &[output[0], c])?;
//}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we try to put these back (they play a role in classic Q8 ops only)

@kali kali merged commit a1d7c92 into main Jan 31, 2025
67 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants