ClipCap-Chinese icon indicating copy to clipboard operation
ClipCap-Chinese copied to clipboard

shift_logits

Open ASENNIU opened this issue 1 year ago • 0 comments

作者你好,我是nlp初学者,请问为什么在计算交叉熵的时候要shift logits喃。 hift_logits = logits[..., args.prefix_len - 1:-1, :].contiguous().view(-1, logits.size(-1))

ASENNIU avatar Aug 14 '23 08:08 ASENNIU