diff options
Diffstat (limited to 'candle-core/src/error.rs')
-rw-r--r-- | candle-core/src/error.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/candle-core/src/error.rs b/candle-core/src/error.rs index 83d3e66d..637fd8b7 100644 --- a/candle-core/src/error.rs +++ b/candle-core/src/error.rs @@ -10,6 +10,14 @@ pub enum Error { got: DType, }, + #[error("invalid args for narrow: {shape:?}, dim: {dim}, start: {start}, len:{len}")] + NarrowInvalidArgs { + shape: Shape, + dim: usize, + start: usize, + len: usize, + }, + #[error("{op} only supports contiguous tensors")] RequiresContiguous { op: &'static str }, |