SpencerWhitehead/novelvqa

Something wrong when computing loss

Opened this issue · 3 comments

llipa commented

image
It goes wrong when computing loss in losses.py point_loss_ = self._point_loss(logits, pos.squeeze(1))
And I check the value of logits and pos
image
The shape of logits is (64,42), pos (64,1)

llipa commented

Is there anything wrong with these two matrix?

Is there anything wrong with these two matrix?

I have the same problem. Have you solved it?

I also met this problem. Do you have any solution? These two variables can't get the correct result of the CrossEntropyLoss.