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

D_tc_loss line 119 in solver.py #14

Open
goodman1204 opened this issue Jun 1, 2020 · 1 comment
Open

D_tc_loss line 119 in solver.py #14

goodman1204 opened this issue Jun 1, 2020 · 1 comment

Comments

@goodman1204
Copy link

I am not sure about the following code, can someone help to explain it?
D_tc_loss = 0.5*(F.cross_entropy(D_z, zeros) + F.cross_entropy(D_z_pperm, ones))

@charan223
Copy link

They are just increasing the values of label 0 for D_z, and label 1 for D_z_pperm

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