Skip to content
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

Squeeze Onnx Import #1753

Merged
merged 17 commits into from
May 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use clone_from to placate reviewdog
  • Loading branch information
agelas committed May 13, 2024
commit 4410f7223cea3869b97f89682e1bdd96defb03b2
2 changes: 1 addition & 1 deletion crates/burn-import/src/onnx/op_configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ pub fn squeeze_config(curr: &Node) -> Vec<i64> {
ArgType::Tensor(tensor) => {
assert_eq!(tensor.dim, 1, "Squeeze: axes tensor must be 1D");
if let Some(Data::Int64s(data)) = &input_value.value {
axes = data.clone();
axes.clone_from(data)
} else {
panic!("Squeeze: Tensor data type must be int64");
}
Expand Down
Loading