mirror of
https://github.com/huggingface/candle.git
synced 2025-06-17 11:08:52 +00:00
Move the variable creation to the variable module. (#159)
* Move the variable creation to the variable module. * Make it possible to set a variable. * Add some basic gradient descent test. * Get the gradient descent test to work.
This commit is contained in:
@ -109,6 +109,9 @@ pub enum Error {
|
||||
#[error("cannot broadcast {src_shape:?} to {dst_shape:?}")]
|
||||
BroadcastIncompatibleShapes { src_shape: Shape, dst_shape: Shape },
|
||||
|
||||
#[error("cannot set variable {msg}")]
|
||||
CannotSetVar { msg: &'static str },
|
||||
|
||||
// Box indirection to avoid large variant.
|
||||
#[error("{0:?}")]
|
||||
MatMulUnexpectedStriding(Box<MatMulUnexpectedStriding>),
|
||||
|
Reference in New Issue
Block a user