为什么模型loss为负

一般loss为负是在loss采用交叉熵的情况下:
可以将softmax 改为 log_softmax

猜你喜欢

转载自blog.csdn.net/qq_43360777/article/details/106382916