-
-
Notifications
You must be signed in to change notification settings - Fork 104
Closed
Labels
good first issueGood for newcomersGood for newcomers
Description
First mentioned in #99.
In order to access parameter data for optimizers, the parameters need to have HasArrayData
added:
fn gradient<P>(&mut self, p: &P) -> Option<Box<P::Array>>
where
- P: HasUniqueId + HasArrayType<Dtype = f32> + HasDevice;
+ P: HasUniqueId + HasArrayType<Dtype = f32> + HasDevice + HasArrayData;
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers