mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 11:08:52 +00:00
Simplify the parameters used by sum and sum_keepdim. (#165)
This commit is contained in:
@ -37,6 +37,13 @@ pub enum Error {
|
||||
op: &'static str,
|
||||
},
|
||||
|
||||
#[error("{op}: duplicate dim index {dims:?} for shape {shape:?}")]
|
||||
DuplicateDimIndex {
|
||||
shape: Shape,
|
||||
dims: Vec<usize>,
|
||||
op: &'static str,
|
||||
},
|
||||
|
||||
// === Shape Errors ===
|
||||
#[error("unexpected rank, expected: {expected}, got: {got} ({shape:?})")]
|
||||
UnexpectedNumberOfDims {
|
||||
|
Reference in New Issue
Block a user