Error: Tensorflow CNN dimension

前端 未结 1 909
南笙
南笙 2021-01-28 19:51

Hi. I\'m new to Tensorflow and trying to run cifar10 dataset with CNN. My Network is constructed with three layers such as

  1. Convolution + Max Pooli
相关标签:
1条回答
  • 2021-01-28 20:23

    The error tensorflow.python.framework.errors.InvalidArgumentError: Input to reshape is a tensor with 6400 values, but the requested shape requires a multiple of 3840 suggests that the input tensor of tf.reshape() in line 20 has a number of values that is not a multiple of 3840.

    That's because tensor l1 isn't defined within function model (you might have used it earlier and it might have 6400 values). You probably want to set l1=layer1. Note that tensor l4 isn't defined in function model either.

    Please, let me know if my answer doesn't solve your error.

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