Skip to content

Commit 567fdcc

Browse files
committed
Add Merge input_shape property
1 parent cf755a9 commit 567fdcc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

keras/layers/core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,10 @@ def __init__(self, layers, mode='sum', concat_axis=-1, dot_axes=-1):
517517
self.constraints.append(c)
518518
super(Merge, self).__init__()
519519

520+
@property
521+
def input_shape(self):
522+
return [layer.input_shape for layer in self.layers]
523+
520524
@property
521525
def output_shape(self):
522526
input_shapes = [layer.output_shape for layer in self.layers]

0 commit comments

Comments
 (0)