Fix typo in Layer.add_loss.
@@ -1098,7 +1098,7 @@ class Layer(object):
if hasattr(self, '_losses'):
self._losses += losses
# Update self._per_input_updates
- if isinstance(input, list) and inputs == []:
+ if isinstance(inputs, list) and inputs == []:
inputs = None
if inputs is not None:
inputs_hash = _object_list_uid(inputs)
