aymericdamien / TensorFlow-Examples

TensorFlow Tutorial and Examples for Beginners (support TF v1 & v2)
Other
43.43k stars 14.94k forks source link

fix NaN bug in tf.log #384

Open Justobe opened 4 years ago

Justobe commented 4 years ago

I found that there may be a potential NAN bug in the code if we use tf.log(pred) when the pred contains 0. I described in detail in the issue #383 .