Skip to content

Commit 99b2904

Browse files
committed
fix
1 parent eaed12b commit 99b2904

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beginner_source/examples_nn/polynomial_module.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def string(self):
4949
model = Polynomial3()
5050

5151
# Construct our loss function and an Optimizer. The call to model.parameters()
52-
# in the SGD constructor will contain the learnable parameters of the two
53-
# nn.Linear modules which are members of the model.
52+
# in the SGD constructor will contain the learnable parameters of the nn.Linear
53+
# module which is members of the model.
5454
criterion = torch.nn.MSELoss(reduction='sum')
5555
optimizer = torch.optim.SGD(model.parameters(), lr=1e-6)
5656
for t in range(2000):

0 commit comments

Comments
 (0)