kanyun-inc / fairseq-gec

Source code for paper: Improving Grammatical Error Correction via Pre-Training a Copy-Augmented Architecture with Unlabeled Data
Other
246 stars 67 forks source link

bash train.sh got error #45

Open tpackolus opened 1 year ago

tpackolus commented 1 year ago

I run bash train.sh 0 name ... but I got error:

RuntimeError: Output 0 of SplitBackward0 is a view and is being modified inplace. This view is the output of a function that returns multiple views. Such functions do not allow the output views to be modified inplace. You should replace the inplace operation by an out-of-place one.

Can help me ?

asartipi13 commented 1 year ago

Hi,

I had the same problem in the multihead_attention.py of fairseq, but this helped. Replacing to q = self.scaling to q = q self.scaling.

I run bash train.sh 0 name ... but I got error:

RuntimeError: Output 0 of SplitBackward0 is a view and is being modified inplace. This view is the output of a function that returns multiple views. Such functions do not allow the output views to be modified inplace. You should replace the inplace operation by an out-of-place one.

Can help me ?