Skip to content

Commit 9927173

Browse files
authored
Merge pull request yunjey#114 from xinqiu/patch-1
fix spelling mistake
2 parents 66783db + ce951bf commit 9927173

File tree

1 file changed

+2
-2
lines changed
  • tutorials/01-basics/logistic_regression

1 file changed

+2
-2
lines changed

tutorials/01-basics/logistic_regression/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
.format(epoch+1, num_epochs, i+1, total_step, loss.item()))
6060

6161
# Test the model
62-
# In test phase, we don't need to compute gradients (for memory efficieny)
62+
# In test phase, we don't need to compute gradients (for memory efficiency)
6363
with torch.no_grad():
6464
correct = 0
6565
total = 0
@@ -73,4 +73,4 @@
7373
print('Accuracy of the model on the 10000 test images: {} %'.format(100 * correct / total))
7474

7575
# Save the model checkpoint
76-
torch.save(model.state_dict(), 'model.ckpt')
76+
torch.save(model.state_dict(), 'model.ckpt')

0 commit comments

Comments
 (0)