flattening in convolutional neural network