KBRD
KBRD copied to clipboard
RuntimeError: a view of a leaf Variable that requires grad is being used in an in-place operation.
When training the dialog part, executing the command ' bash scripts/t2t_rec_rgcn.sh 1 0 ' the following error rises: "RuntimeError: a view of a leaf Variable that requires grad is being used in an in-place operation."
The error raises because of the following statement (in "KBRD/parlai/agents/transformer_rec/modules.py", line 188)
out[:, 0::2] = torch.FloatTensor(np.sin(position_enc)).type_as(out)
Could you please help me face it?
Here I copied the entire error description and its traceback:
Traceback (most recent call last):
File "parlai/tasks/redial/train_transformer_rec.py", line 36, in