I am trying to implement a code for Accumulated Gradient Optimizer in Keras. I obtained this code from this github repo https://github.com/bojone/accum_optimizer_for_keras