chickadee » array-morphisms-crunch » crunch-adam-f32

crunch-adam-f32 n hyper param grad m vprocedure
crunch-adam-f64 n hyper param grad m vprocedure

One Adam update of the first n elements of param, grad, m and v, in place. hyper is an f64vector holding the learning rate, beta1, beta2, epsilon, the bias corrections 1 - beta1^t and 1 - beta2^t, and the weight decay. This is the calling convention of nanograd's optimizer-kernel registry.