    def apply(self, num_updates: Optional[int] = None):
        """
        Update the moving averages based on the latest values of the parameters.
        """
        raise NotImplementedError
Update the moving averages based on the latest values of the parameters.
allennlp/training/moving_average.py