Skip to content

Commit

Permalink
Fix typo in Layer.add_loss. (keras-team#7657)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgaiser authored and fchollet committed Aug 15, 2017
1 parent e499168 commit a095c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras/engine/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ def add_loss(self, losses, inputs=None):
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)
Expand Down

0 comments on commit a095c1b

Please sign in to comment.