tensorflow之mnist实例--用简单的神经网络来训练和测试

ww.cnblogs.com/denny402/p/5852983.html

代码实现见/home/echo/Tensorflow_exercise/BP_Mnist.ipynb

cross_entropy = tf.reduce_mean(-tf.reduce_sum(y_actual*tf.log(y_predict),reduction_indies=1))   #求交叉熵

报错:应该为:
cross_entropy = tf.reduce_mean(-tf.reduce_sum(y_actual*tf.log(y_predict),1))  

你可能感兴趣的:(tensorflow之mnist实例--用简单的神经网络来训练和测试)