pytorch CrossEntropyLoss报错 Posted on 2018-07-Thu Views: Views: 1loss = criterion(outputs, targets.squeeze())