Add gradOutputBuffer also into accGradParameters

Thanks for creating the gradOutputBuffer when needed.
I added the same code to the accGradParameters() method.