Skip to content

Commit

Permalink
use actual shapes for opaque weights case
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieupoumeyrolsonos committed Nov 28, 2024
1 parent 69b5aab commit 19fe42c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/ops/einsum/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ impl TypedOp for EinSum {
}

fn cost(&self, inputs: &[&TypedFact]) -> TractResult<TVec<(Cost, TDim)>> {
let shapes: TVec<&[TDim]> = inputs.iter().map(|t| &*t.shape).collect();
let shapes = self.actual_input_shapes_from_facts(inputs)?;
let oshape = eval::output_shape(&self.axes, &shapes)?;
let ks = self
.axes
Expand Down

0 comments on commit 19fe42c

Please sign in to comment.