标签:array run 1.7 with parse softmax soft ESS log
>>> a=np.array([[-2.6, -1.7, -3.2, 0.1], [-2.6, -1.7, 3.2, 0.1]])
>>> z=tf.nn.sparse_softmax_cross_entropy_with_logits(logits=a,labels=[2,2])
>>> sess.run(z)
array([3.53853455, 0.0540367 ])
sparse_softmax_cross_entropy_with_logits
标签:array run 1.7 with parse softmax soft ESS log
原文地址:https://www.cnblogs.com/wuxiangli/p/10305911.html