报错 解决: 包含的目标类别 少于5类 因此无法返回 top5的 概率 修改 将 topk=(1,5) 改为 (1,2) acc1, acc5, _ = model.get_accuracy(accuracy, output, target,topk=(1, 2)) 解决!!!