hfdp:

[32, 1, 3, 3], but got 2-dimensional input of size [256, 256] instead**


So Pytorch expects input with channel first format so you need to reshape your input as I mentioned earlier to be (batch_size,no_channel,height,width)