parameters: (self, epoch)
docstring: End epoch.
  
      Args:
        epoch: `int`, the epoch number.
  
      Raises:
        ValueError: if we've not begun an epoch, or `epoch` number does not match.
docstring_summary: End epoch.
docstring_tokens: End epoch .
function: def epoch_end(self, epoch):
      """End epoch.
  
      Args:
        epoch: `int`, the epoch number.
  
      Raises:
        ValueError: if we've not begun an epoch, or `epoch` number does not match.
      """
      if self._current_epoch != epoch:
        raise ValueError("epoch_end expected %s but got %s.", self._current_epoch,
                         epoch)
      self._current_epoch = None
function_tokens: def epoch_end ( self , epoch ) : if self . _current_epoch != epoch : raise ValueError ( "epoch_end expected %s but got %s." , self . _current_epoch , epoch ) self . _current_epoch = None