Hi, I got a problem with a torch.nn.functional.cross_entropy(input, target)
Input is an output from the model.
Input.shape => torch.Size([25, 5])
target.shape => torch.Size([25]) - contains 25 targets for 5 classes, numbers starting from 0 to 4.
When I changed the input to random values using torch.randn(25, 5, requires_grad=True) it worked good.
Why this error would occur?