Traceback (most recent call last):


 "/data/s3475743/fairseq_git/venv/bin/fairseq-train", line 11, in <module>

load_entry_point('fairseq', 'console_scripts', 'fairseq-train')()


 "/data/s3475743/fairseq_git/fairseq/fairseq_cli/train.py", line 377, in cli_main

cli_main_helper(args)


 "/data/s3475743/fairseq_git/fairseq/fairseq_cli/train.py", line 415, in cli_main_helper

main(args)


 "/data/s3475743/fairseq_git/fairseq/fairseq_cli/train.py", line 146, in main

valid_losses, should_stop = train(args, trainer, task, epoch_itr)


 "/software/software/Python/3.6.4-foss-2018a/lib/python3.6/contextlib.py", line 52, in inner

return func(*args, **kwds)


 "/data/s3475743/fairseq_git/fairseq/fairseq_cli/train.py", line 237, in train

log_output = trainer.train_step(samples)


 "/software/software/Python/3.6.4-foss-2018a/lib/python3.6/contextlib.py", line 52, in inner

return func(*args, **kwds)


 "/data/s3475743/fairseq_git/fairseq/fairseq/trainer.py", line 447, in train_step

raise e


 "/data/s3475743/fairseq_git/fairseq/fairseq/trainer.py", line 421, in train_step

ignore_grad=is_dummy_batch,


 "/data/s3475743/fairseq_git/fairseq/fairseq/tasks/fairseq_task.py", line 346, in train_step

optimizer.backward(loss)


 "/data/s3475743/fairseq_git/fairseq/fairseq/optim/fp16_optimizer.py", line 117, in backward

loss.backward()


 "/data/s3475743/fairseq_git/venv/lib/python3.6/site-packages/torch/tensor.py", line 198, in backward

torch.autograd.backward(self, gradient, retain_graph, create_graph)


 "/data/s3475743/fairseq_git/venv/lib/python3.6/site-packages/torch/autograd/__init__.py", line 100, in backward

allow_unreachable=True)
# allow_unreachable flag
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.HalfTensor [2048, 207744]], which is output 0 of AsStridedBackward, is at version 6; expected version 5 instead. Hint: the backtrace further above shows the operation that failed to compute its gradient. The variable in question was changed in there or anywhere later. Good luck!

Traceback (most recent call last):

 "test.py", line 14, in <module>
testdoc = Test.get(id = 1)

 "/tmp/test/venv_test/src/elasticsearch-dsl/elasticsearch_dsl/document.py", line 143, in get
return cls.from_es(doc)

 "/tmp/test/venv_test/src/elasticsearch-dsl/elasticsearch_dsl/document.py", line 160, in from_es
return cls(meta=meta, **doc)TypeError: __init__() got multiple values for keyword argument 'self'