NLLLoss () #测试CrossEntropyLoss cel = ce(a,target) print(cel) #输出:tensor(0.4076) #测试LogSoftmax+NLLLoss lsm_a = logsoftmax(a) nll_lsm_a = nll(lsm_a ...
確定! 回上一頁