Skip to content

Commit

Permalink
Remove use of _keras_shape in merge.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Jan 8, 2018
1 parent ab97958 commit 3966daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras/layers/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def _merge_function(self, inputs):
if len(inputs) != 2:
raise ValueError('`Subtract` layer should be called '
'on exactly 2 inputs')
if inputs[0]._keras_shape != inputs[1]._keras_shape:
if K.int_shape(inputs[0]) != K.int_shape(inputs[1]):
raise ValueError('`Subtract` layer should be called '
'on inputs of the same shape')
return inputs[0] - inputs[1]
Expand Down

0 comments on commit 3966daa

Please sign in to comment.