Better error message if the length of the shape cannot be determined.
Merge pull request #1340 from lamblin/reshape_better_msg

Better error message if the length of the shape cannot be determined.