[tf]中的 tf.nn.sigmoid_cross_entro
2019-01-20 本文已影响16人
VanJordan
loss = tf.nn.sigmoid_cross_entropy_with_logits(labels=self.train_label,logits=logits)
self.loss = tf.reduce_sum(loss)
loss = tf.nn.sigmoid_cross_entropy_with_logits(labels=self.train_label,logits=logits)
self.loss = tf.reduce_sum(loss)