今天打算学习一下简单的深度学习模型,然后在网上找了一段简单的代码
找的代码网站如下:Pytorch实战1:LeNet手写数字识别 (MNIST数据集)_sunqiande88的博客-CSDN博客
复制拷贝之后在 VSCode 上面运行发现出了下面这个错误
PS D:\vscode\code> python day1013.py
D:\Anaconda3\File\lib\site-packages\torchvision\datasets\mnist.py:498: UserWarning: The given NumPy array is not writeable, and PyTorch does not support non-writeable tensors. This means you can write to the underlying (supposedly non-writeable) NumPy array using the tensor. You may want to copy the array to protect its data or make it writeable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at ..\torch\csrc\u