can‘t convert cuda:0 device type tensor to numpy.Use Tensor.cpu() to copy the tensor to host memory 问题详解 源代码 plt.plot(history['train_acc'], label='train accuracy') plt.plot(history['dev_acc'