Skip to content

Commit a095c1b

Browse files
hgaiserfchollet
authored andcommitted
Fix typo in Layer.add_loss. (keras-team#7657)
1 parent e499168 commit a095c1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keras/engine/topology.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ def add_loss(self, losses, inputs=None):
10981098
if hasattr(self, '_losses'):
10991099
self._losses += losses
11001100
# Update self._per_input_updates
1101-
if isinstance(input, list) and inputs == []:
1101+
if isinstance(inputs, list) and inputs == []:
11021102
inputs = None
11031103
if inputs is not None:
11041104
inputs_hash = _object_list_uid(inputs)

0 commit comments

Comments
 (0)