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 loss_ce? #22

Closed
codyshen0000 opened this issue Oct 22, 2020 · 1 comment
Closed

About loss_ce? #22

codyshen0000 opened this issue Oct 22, 2020 · 1 comment

Comments

@codyshen0000
Copy link

Hi , I'm confused why use ''torch.sum(z**2)'' to calculate loss_ce. Besides, how can it be transformed from calculating loss_distr on Y x Z to calculating Loss_ce only on Z space?

@pkuxmq
Copy link
Owner

pkuxmq commented Oct 22, 2020

Please see Eq.(9) in the paper. z follows Gaussian distribution, so its log probability is ||z||^2. CE loss does not necessarily guarantee the distribution of (Y, Z) and is only a weaker surrogate loss for stable training (refer to #14).

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