We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zhiyu 你好, label = torch.zeros(scores.shape[0], dtype=torch.long).to(scores.device) # why zeros? irl_loss = F.cross_entropy(scores, label) 在计算损失函数时,交叉熵计算为什么设定label 标签都为零呢?
The text was updated successfully, but these errors were encountered:
同问这个问题
Sorry, something went wrong.
Same question here.
#5 I refer to the explanation here
No branches or pull requests
zhiyu 你好,
label = torch.zeros(scores.shape[0], dtype=torch.long).to(scores.device) # why zeros?
irl_loss = F.cross_entropy(scores, label)
在计算损失函数时,交叉熵计算为什么设定label 标签都为零呢?
The text was updated successfully, but these errors were encountered: