We see this error when the input shape is not specified correctly. Then, all layers follow can not calculate output shape at all. Please see this thread.
We see this error when the input shape is not specified correctly. Then, all layers follow can not calculate output shape at all. Please see this thread.