mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 11:37:11 +00:00
Add the varbuilder + check shapes.
This commit is contained in:
@ -10,6 +10,13 @@ pub enum Error {
|
||||
got: DType,
|
||||
},
|
||||
|
||||
#[error("{msg}, expected: {expected:?}, got: {got:?}")]
|
||||
UnexpectedShape {
|
||||
msg: String,
|
||||
expected: Shape,
|
||||
got: Shape,
|
||||
},
|
||||
|
||||
#[error("{op}: dimension index {dim} out of range for {shape:?}")]
|
||||
DimOutOfRange {
|
||||
shape: Shape,
|
||||
|
Reference in New Issue
Block a user