We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 716cac3 commit 09bbb44Copy full SHA for 09bbb44
chapter8_Application/seq2seq-translation/train.py
@@ -43,7 +43,7 @@ def showPlot(points):
43
def train(encoder, decoder, total_epoch, use_attn):
44
45
param = list(encoder.parameters()) + list(decoder.parameters())
46
- optimizer = optim.Adam(param, lr=1e-2)
+ optimizer = optim.Adam(param, lr=1e-3)
47
criterion = nn.NLLLoss()
48
plot_losses = []
49
for epoch in range(total_epoch):
0 commit comments