diff --git a/docs/1.7/06.md b/docs/1.7/06.md index 157f7097aba49fccb6580592345b57f0359310ed..752f46c50712fa023c7f4693450004d6a2bd74d8 100644 --- a/docs/1.7/06.md +++ b/docs/1.7/06.md @@ -311,8 +311,8 @@ Accuracy of the network on the 10000 test images: 53 % 嗯,哪些类的表现良好,哪些类的表现不佳: ```py -class_correct = list(0\. for i in range(10)) -class_total = list(0\. for i in range(10)) +class_correct = list(0. for i in range(10)) +class_total = list(0. for i in range(10)) with torch.no_grad(): for data in testloader: images, labels = data @@ -418,4 +418,4 @@ inputs, labels = data[0].to(device), data[1].to(device) [下载 Jupyter 笔记本:`cifar10_tutorial.ipynb`](https://pytorch.org/tutorials/_downloads/17a7c7cb80916fcdf921097825a0f562/cifar10_tutorial.ipynb) -[由 Sphinx 画廊](https://sphinx-gallery.readthedocs.io)生成的画廊 \ No newline at end of file +[由 Sphinx 画廊](https://sphinx-gallery.readthedocs.io)生成的画廊