PyTorch Forums
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor []] is at version 1; expected version 0 instead. Hint: the backtrace further above shows the operation that failed to com
autograd
s_n
(Shubham Negi)
December 18, 2022, 1:01am
3
Hi,
Thanks!
Actually, that was the reason for the error.
Getting the "One of the variables needed for gradient computation has been modified by an inplace operation" Error while implementing PPO with a shared Module between actor and critic
show post in topic