diff options
Diffstat (limited to 'candle-core/src/error.rs')
-rw-r--r-- | candle-core/src/error.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/candle-core/src/error.rs b/candle-core/src/error.rs index 71fd21de..d5de4296 100644 --- a/candle-core/src/error.rs +++ b/candle-core/src/error.rs @@ -114,6 +114,9 @@ pub enum Error { #[error(transparent)] SafeTensor(#[from] safetensors::SafeTensorError), + #[error("unsupported safetensor dtype {0:?}")] + UnsupportedSafeTensorDtype(safetensors::Dtype), + #[error("cannot broadcast {src_shape:?} to {dst_shape:?}")] BroadcastIncompatibleShapes { src_shape: Shape, dst_shape: Shape }, } |