'Args:
opt (tf.train.Optimizer): the underlying sub-optimizer.
niter (int): number of iterations to accumulate gradients.'

def __init__(self, opt, niter):

    super(AccumGradOptimizer, self).__init__(opt, 'AccumGrad')
    self._niter = int(niter)
