jikexueyuanwiki / tensorflow-zh

谷歌全新开源人工智能系统TensorFlow官方文档中文版
http://wiki.jikexueyuan.com/project/tensorflow-zh/
12.37k stars 4.18k forks source link

MNIST_softmax的一个error #165

Closed lizhiyuanUSTC closed 8 years ago

lizhiyuanUSTC commented 8 years ago

直接使用tf.nn.softmax(tf.matmul(x, W) + b)计算类别概率会导致tf.log(y)出现log(0)的错误