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

About the implementation of KLR #5

Open
LetheSec opened this issue Oct 22, 2024 · 0 comments
Open

About the implementation of KLR #5

LetheSec opened this issue Oct 22, 2024 · 0 comments

Comments

@LetheSec
Copy link

LetheSec commented Oct 22, 2024

Hi, thanks for your nice work.

I have some questions about the implementation of the KLR loss.

If KLR refers to KL divergence as in previous work, when log_target=True, it seems that F.kl_div should take log probabilities as input instead of using logits directly $^{[1]}$, what impact will this have on the results?

[1] https://pytorch.org/docs/stable/generated/torch.nn.functional.kl_div.html

@LetheSec LetheSec changed the title About the implementation KLR About the implementation of KLR Oct 22, 2024
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

1 participant