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

why "weights" in features? #2

Open
hitxujian opened this issue Jul 12, 2019 · 1 comment
Open

why "weights" in features? #2

hitxujian opened this issue Jul 12, 2019 · 1 comment

Comments

@hitxujian
Copy link

hi:
thanks for sharing! one question about weights,
it's usage is in compute_loss(), and it only effect end_logits computation!
in the generation of weights ,"[1] * len(start_positions)" , when 1 is represents start begins.
so, my problem is why use "weights " to compute end logits loss?

@alphaf52
Copy link
Member

alphaf52 commented Aug 6, 2019

Sorry for late reply. This file is modified from the original version of DocumentQA, and I did not change this particular line. I will try to figure that out.

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