pytorch学习笔记PyTorch

pytorch调用inception-v3报错 'max() r

2020-04-09  本文已影响0人  洗洗睡吧i

pytorch调用inception-v3报错:

error:
  train_model(model, criterion, optimizer, scheduler, num_epochs)
       37    outputs = model(inputs)
  ---> 38    _, preds = torch.max(outputs, 1)
       39    loss = criterion(outputs, labels)
  TypeError: max() received an invalid combination of arguments - got (InceptionOutputs, int), but expected one of: ...

软件版本:

解决办法:

上一篇 下一篇

猜你喜欢

热点阅读