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

ValueError: vec Nan #13

Open
aakash-saboo opened this issue Jan 27, 2020 · 2 comments
Open

ValueError: vec Nan #13

aakash-saboo opened this issue Jan 27, 2020 · 2 comments

Comments

@aakash-saboo
Copy link

Hi
I was training a GAN using the optimizer. It runs fine for 80 iterations but on 81st iteration, it gave
ValueError: vec Nan.

value_error

Can you suggest me a possible way to debug it?
The same code with adam is just running fine.

Thanks

@devzhk
Copy link
Owner

devzhk commented Jan 27, 2020

I will push a new code in like one week. You can try that one. However, for the current version, I would suggest add use nn.BCEwithLogits and L2 weight penalty to the loss.

@aakash-saboo
Copy link
Author

Hey,
Thanks for your quick response.

I am using nn.BCEWithLogits but not L2. I am using L1 loss. Ill try replacing it with L2.

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