Target size (torch.size([16])) must be the same as input size (torch.size([16, 9]))

I am having the same error, did you manage to solve it?