Tensorflow Incompatible Shapes Error in Tutorial

前端 未结 1 1937
你的背包
你的背包 2021-01-26 11:35

I\'ve been trying to create the convolutional network from the Tensorflow tutorial, but I\'ve been having trouble. For some reason, I\'m getting errors where the size of y_conv

相关标签:
1条回答
  • 2021-01-26 12:00

    The reshapes with the -1's are clues. It's not the batch size that's wrong it's the image size. You're flattening it out into the batch dimension.

    Why is the image the wrong size?

    On the second conv you're passing conv1 instead of pool1 conv2d(h_conv1, w_conv2).

    Personally for pipelines like this I like to use 1 name for the data as it flows through.

    Start using a debugger, it's worth it!

    0 讨论(0)
提交回复
热议问题