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

raise RuntimeError("Mismatch in shape: grad_output[" RuntimeError: Mismatch in shape: grad_output[0] has a shape of torch.Size([1]) and output[0] has a shape of torch.Size([]). #73

Open
xxz-wow opened this issue Aug 9, 2022 · 5 comments

Comments

@xxz-wow
Copy link

xxz-wow commented Aug 9, 2022

deer
how to solve it?in the rl.py
autograd.backward(
[critic_loss] + losses,
[torch.ones(1).to(critic_loss.device)]*(1+len(losses)),
)
raise that problem

@alyaa278
Copy link

alyaa278 commented Oct 2, 2022

How can i install ROUGE package? what is the DB_file which should be installed?

@luongtrieuvy202
Copy link

deer how to solve it?in the rl.py autograd.backward( [critic_loss] + losses, [torch.ones(1).to(critic_loss.device)]*(1+len(losses)), ) raise that problem

have you solve the problem ?

@xxz-wow
Copy link
Author

xxz-wow commented Jan 15, 2023 via email

@DengNingyuan
Copy link

I meet the same problem

@DengNingyuan
Copy link

deer how to solve it?in the rl.py autograd.backward( [critic_loss] + losses, [torch.ones(1).to(critic_loss.device)]*(1+len(losses)), ) raise that problem

have you solve the problem ?

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

4 participants