I’m really not sure how you would like to create a tensor of [3, 224, 224] using your data.
Your raw data has 128*2+128+28*28 = 1168 values, while the expected image tensor has 150528 values.
Would you like to upsample the features somehow?
While this could make sense for the MNIST data, I’m not sure, how you would like to treat your features.