Closed Gpwner closed 3 years ago
It seem to be
loss = F.cross_entropy(logits, cls_labels.to('cuda'))
If I am right ,lee me know.
Yes you are right, if using cuda. Otherwise it should be logits.device, not h.device. I have just corrected and updated. Thanks for letting me know!
I am trying to run the run.sh ,But I got an error:
it seem to be h is not define in this line
https://github.com/TideDancer/interspeech21_emotion/blob/main/model.py#L62
Any help?Thanks in advance~