optimize: actually using the initialized adagrad tensors