Skip to content
New issue

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

模型编码器输出打分后,为什么要再加上mask? #11

Open
ShusenWang opened this issue Feb 22, 2022 · 1 comment
Open

模型编码器输出打分后,为什么要再加上mask? #11

ShusenWang opened this issue Feb 22, 2022 · 1 comment

Comments

@ShusenWang
Copy link

trainer.py line 76
sent_scores = sent_scores + mask.float()
这部操作请问是啥意思

@zhongJY1998
Copy link

同问, 好像乘以mask后值就不在0-1之间, 进行BCELoss() 会报错,大佬求解哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants