交叉熵函数参数改变,所以需要改一下, 改正cross_entropy = tf.nn.sparse_softmax_cross_entropy_with_logits(logits=y,labels=tf.argmax(y_,1))