def dist(a, b):
    return sum((i-j)**2 for i, j in zip(a, b))
def __init__(self, gan=None, config=None, trainer=None):
      super().__init__(config=config, gan=gan, trainer=trainer)
      self.d_grads = None
      self.g_grads = None