message: Raise warning once only if trainable_weights and _collected_trainable_weights are inconsistent
diff: @@ -676,11 +676,10 @@ class Model(Network):
  return
  if len(self.trainable_weights) != len(self._collected_trainable_weights):
  - logging.warning(
  - UserWarning(
  + logging.log_first_n(logging.WARN,
  'Discrepancy between trainable weights and collected trainable'
  ' weights, did you set `model.trainable` without calling'
  - ' `model.compile` after ?'))
  + ' `model.compile` after ?', 1)
  def _make_train_function(self):
  if not hasattr(self, 'train_function'):
  