Skip to content

Commit

Permalink
Fix output_shape too.
Browse files Browse the repository at this point in the history
  • Loading branch information
farizrahman4u committed Jan 7, 2016
1 parent bf2f64b commit e21a6a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras/layers/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ def output_shape(self):
else:
output_shape_func = marshal.loads(self._output_shape)
output_shape_func = types.FunctionType(output_shape_func, globals())
shape = output_shape_func(self.previous.output_shape)
shape = output_shape_func(self.input_shape)
if type(shape) not in {list, tuple}:
raise Exception('output_shape function must return a tuple')
return tuple(shape)
Expand Down

0 comments on commit e21a6a9

Please sign in to comment.