diff --git a/examples/run_transfo_xl.py b/examples/run_transfo_xl.py index 3a0a70e68e8479..b8000a2080ef04 100644 --- a/examples/run_transfo_xl.py +++ b/examples/run_transfo_xl.py @@ -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()