You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the operations are implemented only for &Value<T>, which forbids the following code:
let x = Value::new(2f32);let y = Value::new(3f32);let z = &x + y;// Add is not implemented ...
z.backward();
In the case above, y should probably be stored in the graph, to make the backprop possible through it. It might be tempting to add indirection level via Box or Rc, but it must be done using no heap allocations.
The text was updated successfully, but these errors were encountered:
All the operations are implemented only for
&Value<T>
, which forbids the following code:In the case above,
y
should probably be stored in the graph, to make the backprop possible through it. It might be tempting to add indirection level viaBox
orRc
, but it must be done using no heap allocations.The text was updated successfully, but these errors were encountered: