When I run the training scripits, it reported an RuntimeError: Expected object of scalar type Long but got scalar type Half for argument #2 'target' in call to _thnn_nll_loss_forward for the code in line 52, helpers.py(loss = F.cross_entropy(s / T, p, reduction="mean") * (T ** 2)).)
How can I fix this?
When I run the training scripits, it reported an RuntimeError: Expected object of scalar type Long but got scalar type Half for argument #2 'target' in call to _thnn_nll_loss_forward for the code in line 52, helpers.py(loss = F.cross_entropy(s / T, p, reduction="mean") * (T ** 2)).) How can I fix this?