Fix a typo a warning message in the optimizer utils filter_empty_gradients function.
@@ -81,9 +81,9 @@ def filter_empty_gradients(grads_and_vars):
if vars_with_empty_grads:
logging.warning(
(
- "Gradients do not exist for variables %s when minimizing . "
- "the lossIf you're using `model.compile()`, did you forget "
- "to provide a `loss` argument?"
+ "Gradients do not exist for variables %s when minimizing the "
+ "loss. If you're using `model.compile()`, did you forget to "
+ "provide a `loss` argument?"
),
([v.name for v in vars_with_empty_grads]),
)
