'InceptionOutputs' object has no attribute 'log_softmax'在pytorch0.4之前的版本會(huì)報(bào)錯(cuò)成'tuple' object has no attribute 'log_softmax'
我們需要將 ? outputs=?net(inputs)
改成 ? outputs,hidden?=?net(inputs)
其中,net是某個(gè)網(wǎng)絡(luò)模型的實(shí)例
'InceptionOutputs' object has no attribute 'log_softmax'在pytorch0.4之前的版本會(huì)報(bào)錯(cuò)成'tuple' object has no attribute 'log_softmax'
我們需要將 ? outputs=?net(inputs)
改成 ? outputs,hidden?=?net(inputs)
其中,net是某個(gè)網(wǎng)絡(luò)模型的實(shí)例