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

loss计算 #3

Closed
zbpjlc opened this issue Apr 27, 2021 · 0 comments
Closed

loss计算 #3

zbpjlc opened this issue Apr 27, 2021 · 0 comments

Comments

@zbpjlc
Copy link

zbpjlc commented Apr 27, 2021

weight[torch.where(t == -1)] = 0
和 lks_mask = torch.where(lks < 0, torch.full_like(lks, 0.), torch.full_like(lks, 1.0))

weight[torch.where(t == 0)] = 0是不是应该这样才对呢?

@derronqi derronqi closed this as completed May 7, 2021
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