TensorFlow-Examples
TensorFlow-Examples copied to clipboard
fix NaN bug in tf.log
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 .