update l2norm in nnapplygrads_gpu