Skip to content

Commit

Permalink
mems not splitted
Browse files Browse the repository at this point in the history
  • Loading branch information
thomwolf committed Feb 9, 2019
1 parent 43b9af0 commit f4a07a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/run_transfo_xl.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def evaluate(eval_iter):
with torch.no_grad():
mems = None
for idx, (data, target, seq_len) in enumerate(eval_iter):
ret = model(data, target, *mems)
ret = model(data, target, mems)
loss, mems = ret
loss = loss.mean()
total_loss += seq_len * loss.item()
Expand Down

0 comments on commit f4a07a3

Please sign in to comment.