Solved by Dwight_Foster in post #2 
              
              
                This is happening because the fashion mnist dataset does not have enough images to fill 64 batch sizes for the entire dataset. Due to this the last batch has a size of 32. This does not affect your training. The else statement is just printing out the last batch. Why do you use the else: statement? …