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

The code does not utilize the KL divergence. #2

Open
marvin521 opened this issue Aug 26, 2019 · 1 comment
Open

The code does not utilize the KL divergence. #2

marvin521 opened this issue Aug 26, 2019 · 1 comment

Comments

@marvin521
Copy link

It seems that the code use crossentropy loss as the classification loss (Lc), and it does not use the KL divergence as represented in the paper?

@maryhh
Copy link

maryhh commented Dec 12, 2019

It seems that the code use crossentropy loss as the classification loss (Lc), and it does not use the KL divergence as represented in the paper?

line 355 lc = torch.mean(softmax(output)*(logsoftmax(output)-torch.log((last_y_var)))) kl

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