Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bash train.sh got error #45

Open
tpackolus opened this issue Nov 7, 2022 · 1 comment
Open

bash train.sh got error #45

tpackolus opened this issue Nov 7, 2022 · 1 comment

Comments

@tpackolus
Copy link

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
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants