Skip to content

Fix grammar #739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions beginner_source/blitz/neural_networks_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ def num_flat_features(self, x):
print(params[0].size()) # conv1's .weight

########################################################################
# Let try a random 32x32 input.
# Let's try a random 32x32 input.
# Note: expected input size of this net (LeNet) is 32x32. To use this net on
# MNIST dataset, please resize the images from the dataset to 32x32.
# the MNIST dataset, please resize the images from the dataset to 32x32.

input = torch.randn(1, 1, 32, 32)
out = net(input)
Expand Down Expand Up @@ -227,7 +227,7 @@ def num_flat_features(self, x):
#
# ``weight = weight - learning_rate * gradient``
#
# We can implement this using simple python code:
# We can implement this using simple Python code:
#
# .. code:: python
#
Expand Down Expand Up @@ -258,4 +258,4 @@ def num_flat_features(self, x):
#
# Observe how gradient buffers had to be manually set to zero using
# ``optimizer.zero_grad()``. This is because gradients are accumulated
# as explained in `Backprop`_ section.
# as explained in the `Backprop`_ section.