message: Log a warning directly
diff: @@ -130,7 +130,11 @@ def load(path, compile=True, options=None): # pylint: disable=redefined-builtin
  training_config))
  saving_utils.try_build_compiled_arguments(model)
  if(model.optimizer.get_slot_names()):
  - model._saved_model_with_slot = True
  + logging.warning(
  + 'Your optimizer uses solts. '
  + 'Slots cannot be restored from saved_model As a result, '
  + 'your model is starting with a freshly initialized optimizer.')
  +
  else:
  logging.warning('No training configuration found in save file, so the '
  