Skip to content

Commit

Permalink
clip
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Aug 23, 2024
1 parent dce73e5 commit 459e06e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/ops/einsum/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ impl TypedOp for EinSum {
_outputs: &[&TypedFact],
) -> TractResult<AxesMapping> {
let mut axes = self.axes.clone();
for input in 0..inputs.len().min(2) {
if inputs[input].datum_type.is_opaque() {
while axes.axes(InOut::In(input)).next().is_some() {
axes = axes.remove_axis_occurency(InOut::In(input), 0)?;
for (ix, input) in inputs.iter().enumerate().take(2) {
if input.datum_type.is_opaque() {
while axes.axes(InOut::In(ix)).next().is_some() {
axes = axes.remove_axis_occurency(InOut::In(ix), 0)?;
}
}
}
Expand Down

0 comments on commit 459e06e

Please sign in to comment.