Implicit-Competitive-Regularization icon indicating copy to clipboard operation
Implicit-Competitive-Regularization copied to clipboard

ValueError: vec Nan

Open aakash-saboo opened this issue 5 years ago • 2 comments

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

aakash-saboo avatar Jan 27 '20 08:01 aakash-saboo

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.

devzhk avatar Jan 27 '20 09:01 devzhk

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.

aakash-saboo avatar Jan 27 '20 09:01 aakash-saboo