label为[batch_size, num_class]
logits为[batch_size, num_class]
每个label为比如[0,0,1,0,0,0,1,0,1,0],就是10类有3类正确
不能用tf.nn.softmax_cross_entropy_with_logits
Pytorch使用torch.nn.BCEloss
Tensorflow使用tf.losses.sigmoid_cross_entropy
label为[batch_size, num_class]
logits为[batch_size, num_class]
每个label为比如[0,0,1,0,0,0,1,0,1,0],就是10类有3类正确
不能用tf.nn.softmax_cross_entropy_with_logits
Pytorch使用torch.nn.BCEloss
Tensorflow使用tf.losses.sigmoid_cross_entropy