Skip to content

Commit

Permalink
Squeeze fixes for import
Browse files Browse the repository at this point in the history
  • Loading branch information
agelas committed May 19, 2024
1 parent 79793ca commit b5bbaf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/burn-import/src/burn/node/squeeze.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ impl<PS: PrecisionSettings> NodeCodegen<PS> for SqueezeNode {
let input = scope.tensor_use_owned(&self.input, node_position);
let output = &self.output.name;

let axis = &self.axes.first().unwrap().to_tokens();
let axes_arg = &self.axes.to_tokens();

quote! {
let #output = #input.squeeze_dims(#axis);
let #output = #input.squeeze_dims(&#axes_arg);
}
}

Expand Down

0 comments on commit b5bbaf8

Please sign in to comment.