Commit f4a07a39 authored by thomwolf's avatar thomwolf
Browse files

mems not splitted

parent 43b9af0c
...@@ -102,7 +102,7 @@ def main(): ...@@ -102,7 +102,7 @@ def main():
with torch.no_grad(): with torch.no_grad():
mems = None mems = None
for idx, (data, target, seq_len) in enumerate(eval_iter): for idx, (data, target, seq_len) in enumerate(eval_iter):
ret = model(data, target, *mems) ret = model(data, target, mems)
loss, mems = ret loss, mems = ret
loss = loss.mean() loss = loss.mean()
total_loss += seq_len * loss.item() total_loss += seq_len * loss.item()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment