mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 02:58:50 +00:00
Enhance pickle to retrieve state_dict with a given key (#1671)
This commit is contained in:

committed by
GitHub

parent
a90fc5ca5a
commit
b75e8945bc
@ -196,7 +196,7 @@ fn run_ls(
|
||||
}
|
||||
}
|
||||
Format::Pth => {
|
||||
let mut tensors = candle_core::pickle::read_pth_tensor_info(file, verbose)?;
|
||||
let mut tensors = candle_core::pickle::read_pth_tensor_info(file, verbose, None)?;
|
||||
tensors.sort_by(|a, b| a.name.cmp(&b.name));
|
||||
for tensor_info in tensors.iter() {
|
||||
println!(
|
||||
|
Reference in New Issue
Block a user