fast_abs_rl icon indicating copy to clipboard operation
fast_abs_rl copied to clipboard

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([]).

Open xxz-wow opened this issue 1 year ago • 5 comments

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

xxz-wow avatar Aug 09 '22 06:08 xxz-wow

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

alyaa278 avatar Oct 02 '22 13:10 alyaa278

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 ?

luongtrieuvy202 avatar Jan 14 '23 12:01 luongtrieuvy202

thanks

| | @.*** | | @.*** |

---- Replied Message ---- | From | @.> | | Date | 01/14/2023 20:45 | | To | @.> | | Cc | @.>@.> | | Subject | Re: [ChenRocks/fast_abs_rl] 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([]). (Issue #73) |

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 ?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

xxz-wow avatar Jan 15 '23 07:01 xxz-wow

I meet the same problem

DengNingyuan avatar Apr 22 '24 11:04 DengNingyuan

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 ?

DengNingyuan avatar Apr 22 '24 11:04 DengNingyuan