Thanks.
I did it but im still struggling to do this. when i tested this network on MNIST the input tensor  was [batch_size, 1, image_size, image_size] and the output tensor was [batch_size, 256, image_size, image_size].
if i want to pass tensor of vector of size 20 (i prepared the data) like [batch_size, 20] and then i want to use the same loss function (crossEntropy) i don’t understand how to do it.