-
Notifications
You must be signed in to change notification settings - Fork 123
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
cost:nan #6
Comments
I also encountered this problem when used ABCNN-1 and ABCNN3. |
我也用的自己的数据集,欧几里得距离换成了L1距离后,就没有nan值产生了。 |
The same. The nan occured at the beginning of my training when used ABCNN-1 and ABCNN3. |
Adding 1e-6 into tf.sqrt() can run well. |
I used my own data to train, and cost nan occured. I checked the data, clipped the gradient, and reduced the learning rate, it still occured at the same 'batch_size*batch' location. Do I have anything else to check or change to make it run normally? Thanks for your any suggestion.
the nan error looks like follows:
[batch 1044] cost: 2.06923
[batch 1045] cost: 1.79236
[batch 1046] cost: 1.9501
[batch 1047] cost: 1.86483
[batch 1048] cost: nan
[batch 1049] cost: nan
The text was updated successfully, but these errors were encountered: