From ce951bf7dc8c77e101a08f666628db9b8d55b4f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=86=E5=A4=87=E6=89=BE=E5=B7=A5=E4=BD=9C=E4=B8=AD?= Date: Tue, 15 May 2018 16:02:20 +0800 Subject: [PATCH] fix spelling mistake --- tutorials/01-basics/logistic_regression/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/01-basics/logistic_regression/main.py b/tutorials/01-basics/logistic_regression/main.py index e21b870..a5b53b6 100644 --- a/tutorials/01-basics/logistic_regression/main.py +++ b/tutorials/01-basics/logistic_regression/main.py @@ -59,7 +59,7 @@ for epoch in range(num_epochs): .format(epoch+1, num_epochs, i+1, total_step, loss.item())) # Test the model -# In test phase, we don't need to compute gradients (for memory efficieny) +# In test phase, we don't need to compute gradients (for memory efficiency) with torch.no_grad(): correct = 0 total = 0 @@ -73,4 +73,4 @@ with torch.no_grad(): print('Accuracy of the model on the 10000 test images: {} %'.format(100 * correct / total)) # Save the model checkpoint -torch.save(model.state_dict(), 'model.ckpt') \ No newline at end of file +torch.save(model.state_dict(), 'model.ckpt')