The actor should be optimized first. Otherwise, the weights of the cirtic would have been changed when back propagating the gradients for the actor. The latter will create an error in pytorch 1.5.0
Came here to propose the same pull request because I get the same error with the newest version of pytorch as Xingyu-Lin. Would be nice to have this patched in soon!
The actor should be optimized first. Otherwise, the weights of the cirtic would have been changed when back propagating the gradients for the actor. The latter will create an error in pytorch 1.5.0