"templates/vscode:/vscode.git/clone" did not exist on "969859d5f67c7106de4d1098c4891c9b03694bbe"
Commit f4a07a39 authored by thomwolf's avatar thomwolf
Browse files

mems not splitted

parent 43b9af0c
......@@ -102,7 +102,7 @@ def main():
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()
......
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