Skip to content

Commit

Permalink
bug fix : cnn tensorflow backend error (#3558)
Browse files Browse the repository at this point in the history
  • Loading branch information
jurim0301 authored and fchollet committed Aug 24, 2016
1 parent 82afc71 commit 519d1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras/backend/tensorflow_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ def batch_flatten(x):
'''Turn a n-D tensor into a 2D tensor where
the first dimension is conserved.
'''
x = tf.reshape(x, [-1, prod(shape(x)[1:])])
x = tf.reshape(x, tf.pack([-1, prod(shape(x)[1:])]))
return x


Expand Down

0 comments on commit 519d1e7

Please sign in to comment.