Skip to content

Commit 09bbb44

Browse files
committed
update
1 parent 716cac3 commit 09bbb44

File tree

1 file changed

+1
-1
lines changed
  • chapter8_Application/seq2seq-translation

1 file changed

+1
-1
lines changed

chapter8_Application/seq2seq-translation/train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def showPlot(points):
4343
def train(encoder, decoder, total_epoch, use_attn):
4444

4545
param = list(encoder.parameters()) + list(decoder.parameters())
46-
optimizer = optim.Adam(param, lr=1e-2)
46+
optimizer = optim.Adam(param, lr=1e-3)
4747
criterion = nn.NLLLoss()
4848
plot_losses = []
4949
for epoch in range(total_epoch):

0 commit comments

Comments
 (0)