I don't follow this. You overwrite self.scale_['ch_mean'] in the loop.
I would use:

self.mean_['grad']
self.std_['grad']

makes sense?