mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 18:48:51 +00:00
Add some very basic backprop.
This commit is contained in:
@ -33,6 +33,12 @@ impl From<&[usize]> for Shape {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<&Shape> for Shape {
|
||||
fn from(shape: &Shape) -> Self {
|
||||
Self(shape.0.to_vec())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<()> for Shape {
|
||||
fn from(_: ()) -> Self {
|
||||
Self(vec![])
|
||||
|
Reference in New Issue
Block a user