mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 11:08:52 +00:00
Add the ST error.
This commit is contained in:
@ -110,6 +110,10 @@ pub enum Error {
|
||||
#[error(transparent)]
|
||||
Io(#[from] std::io::Error),
|
||||
|
||||
/// SafeTensor error.
|
||||
#[error(transparent)]
|
||||
SafeTensor(#[from] safetensors::SafeTensorError),
|
||||
|
||||
#[error("cannot broadcast {src_shape:?} to {dst_shape:?}")]
|
||||
BroadcastIncompatibleShapes { src_shape: Shape, dst_shape: Shape },
|
||||
}
|
||||
|
Reference in New Issue
Block a user