Skip to content

Commit

Permalink
Update node.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-camuto committed Dec 21, 2023
1 parent 60dadb0 commit 54b5542
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/graph/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,15 +630,14 @@ impl Node {
out_scale = opkind.out_scale(in_scales)?;

// get the output shape
let mut out_dims = node_output_shapes(&node, symbol_values)?;
let out_dims = node_output_shapes(&node, symbol_values)?;
// nodes vs subgraphs always have a single output
let mut out_dims = out_dims[0].clone();

if out_dims.is_empty() {
out_dims = vec![vec![1]];
out_dims = vec![1];
}

// nodes vs subgraphs always have a single output
let out_dims = out_dims[0].clone();

Ok(Node {
idx,
opkind,
Expand Down

0 comments on commit 54b5542

Please sign in to comment.