Skip to content

Commit bc9dbc5

Browse files
committed
Style fix in error message
1 parent d67cf89 commit bc9dbc5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

keras/engine/topology.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,12 @@ def assert_input_compatibility(self, inputs):
418418
try:
419419
K.is_keras_tensor(x)
420420
except ValueError:
421-
raise ValueError('Layer ' + self.name + ' expects '
422-
'an input of a symbolic tensor but '
423-
'it received an instance of ' +
424-
str(type(x)) + ".")
421+
raise ValueError('Layer ' + self.name + ' was called with '
422+
'an input that isn\'t a symbolic tensor. '
423+
'Received type: ' +
424+
str(type(x)) + '. Full input: ' +
425+
str(inputs) + '. All inputs to the layer '
426+
'should be tensors.')
425427

426428
if not self.input_spec:
427429
return

0 commit comments

Comments
 (0)