Update nnapplygrads_gpu.m