Tensorflow Incompatible Shapes Error in Tutorial

前端 未结 1 1604
情话喂你
情话喂你 2021-01-26 11:42

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:25

    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)
提交回复
热议问题