mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 19:47:12 +00:00
Handle LongStorage in pytorch checkpoints. (#1152)
This commit is contained in:
@ -609,6 +609,7 @@ fn rebuild_args(args: Object) -> Result<(Layout, DType, String, usize)> {
|
||||
"HalfStorage" => DType::F16,
|
||||
"BFloat16Storage" => DType::BF16,
|
||||
"ByteStorage" => DType::U8,
|
||||
"LongStorage" => DType::I64,
|
||||
other => {
|
||||
crate::bail!("unsupported storage type {other}")
|
||||
}
|
||||
|
Reference in New Issue
Block a user