Why here there is "flatten" and in trainBatch there is no "flatten"?
Shouldn't the format be the same for train and test?