Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseCarlosGarcia95 committed Dec 31, 2024
1 parent 4c669dc commit 49d44b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion candle-pyo3/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1456,7 +1456,7 @@ fn save_gguf(path: &str, tensors: PyObject, metadata: PyObject, py: Python<'_>)

let converted_metadata: Vec<_> = metadata
.iter()
.map(|(name, value)| (name.as_str(), value))
.map(|(name, value)| (name.as_str(), value.clone()))
.collect();

let converted_tensors: Vec<_> = tensors
Expand Down

0 comments on commit 49d44b5

Please sign in to comment.