The labels are good. The preds should be of same shape. You can also change the shape of labels BTW.
P.S. - While BCELoss does support any shape as long it is same across target and output, CrossEntropy only allows 1D tensors.