mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 03:28:50 +00:00
Fixing slice errors + comments.
This commit is contained in:
@ -79,6 +79,13 @@ pub enum Error {
|
||||
nth_shape: Shape,
|
||||
},
|
||||
|
||||
#[error("Cannot divide tensor of shape {shape:?} equally along dim {dim} into {n_parts}")]
|
||||
ShapeMismatchSplit {
|
||||
shape: Shape,
|
||||
dim: usize,
|
||||
n_parts: usize,
|
||||
},
|
||||
|
||||
#[error("{op} can only be performed on a single dimension")]
|
||||
OnlySingleDimension { op: &'static str, dims: Vec<usize> },
|
||||
|
||||
|
Reference in New Issue
Block a user