Open LonelyStalker opened 2 weeks ago
If I change the defination of batch_size to 16, 256, or any other value, the error traceback always reports the input batch_size is 1/4 of target batch_size. Here is the further valueError info: ValueError: Expected input batch_size (4) to match target batch_size (16). ValueError: Expected input batch_size (64) to match target batch_size (256).
I defined the Convolutional Network as the provided architecture. Here is the code:
But during the training step, an valueerror appeared. Here is the code and erro traceback:
I did't change any part of provided code, especially the part about batch_size. So this is quite confusing for me.
Is that because the provided train() funtion is not suitble for CNN and I should white a new train() function for batch_size = 16, or there is someting wrong with my CNN Defination?