Skip to content

Commit 79380fb

Browse files
committed
fix typo
1 parent 921b69a commit 79380fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tutorial-contents/403_RNN_regressor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def forward(self, x, h_state):
8282
# !! next step is important !!
8383
h_state = h_state.data # repack the hidden state, break the connection from last iteration
8484

85-
loss = loss_func(prediction, y) # cross entropy loss
85+
loss = loss_func(prediction, y) # calculate loss
8686
optimizer.zero_grad() # clear gradients for this training step
8787
loss.backward() # backpropagation, compute gradients
8888
optimizer.step() # apply gradients

0 commit comments

Comments
 (0)