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

Nan Loss #4

Open
shidilrzf opened this issue May 14, 2018 · 1 comment
Open

Nan Loss #4

shidilrzf opened this issue May 14, 2018 · 1 comment

Comments

@shidilrzf
Copy link

Sometimes when I try this code, I get a Nan loss. For example the loss for epoch "i" is 100 and the loss for epoch "i+1" is Nan...
Do you have any idea why this happens?

@jaekyeom
Copy link

That's probably because tf.log got 0 as input. Try using tf.nn.sigmoid_cross_entropy_with_logits.

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