-
Notifications
You must be signed in to change notification settings - Fork 216
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
Conversation
3561f3e
to
d1af7c7
Compare
core/src/ops/einsum/as_matmul.rs
Outdated
} | ||
AxesOrPatch::NotAMatMul(axes) => { | ||
bail!("{} is not a matmul because of axis {}", op.axes, axes.iter().map(|a| a.repr).join(", ") ) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird formatting here.
test-rt/suite-unit/src/bin_einsum.rs
Outdated
}) | ||
}) | ||
.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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want this ?
There was a problem hiding this comment.
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
test-rt/suite-unit/src/bin_einsum.rs
Outdated
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) |
There was a problem hiding this comment.
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" ? :)
test-rt/suite-unit/src/bin_einsum.rs
Outdated
//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])?; | ||
//} |
There was a problem hiding this comment.
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)
No description provided.