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