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
PaddleRec/models/match/dssm/train.py
Line 53 in 5cd4ae7
感觉这里应该改为下面的代码:如果不加axis参数,后续的paddle.mean函数将没有任何意义,而且得到的avg_cost将会是一个batch中每条样本的损失之和,而不是损失平均。
axis
paddle.mean
avg_cost
损失之和
损失平均
loss = -paddle.sum(paddle.log(hit_prob), axis=-1) avg_cost = paddle.mean(x=loss)
The text was updated successfully, but these errors were encountered:
@yinhaofeng
Sorry, something went wrong.
感谢您的建议,我们已经按照建议修改了
No branches or pull requests
PaddleRec/models/match/dssm/train.py
Line 53 in 5cd4ae7
感觉这里应该改为下面的代码:如果不加
axis
参数,后续的paddle.mean
函数将没有任何意义,而且得到的avg_cost
将会是一个batch中每条样本的损失之和
,而不是损失平均
。The text was updated successfully, but these errors were encountered: