diff options
author | Laurent Mazare <laurent.mazare@gmail.com> | 2023-07-03 08:47:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-03 08:47:25 +0100 |
commit | b036faf6a0ab163b926a0178061aee9f9cf8034f (patch) | |
tree | 3c72011e0aadbe27fc4ac9af70f91cf4941524d1 /candle-core/src/error.rs | |
parent | 9e419641fb5594435ea8f0abd04547db0991c2b2 (diff) | |
parent | fe2c07e36876b452e60d40197152b21f95e7d79f (diff) | |
download | candle-b036faf6a0ab163b926a0178061aee9f9cf8034f.tar.gz candle-b036faf6a0ab163b926a0178061aee9f9cf8034f.tar.bz2 candle-b036faf6a0ab163b926a0178061aee9f9cf8034f.zip |
Merge pull request #56 from LaurentMazare/safetensor-module
Dedicated safetensor module
Diffstat (limited to 'candle-core/src/error.rs')
-rw-r--r-- | candle-core/src/error.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/candle-core/src/error.rs b/candle-core/src/error.rs index 341fc151..71fd21de 100644 --- a/candle-core/src/error.rs +++ b/candle-core/src/error.rs @@ -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 }, } |