Open Idate96 opened 3 years ago
Has the same error. Is there any solve for this?
You can change the function 'train_actor_critic', like the following:
def train_actor_critic():
...
critic_optim.zero_grad()
actor_optim.zero_grad()
loss.backward(retain_graph=True)
loss.backward()
critic_optim.step()
actor_optim.step()
The main runs on pytorch 0.4.1 but it fails for pytorch 1.6.0.
Running the main.py for VAIL implementation I get a runtime error about a replacement in place of a variable.
I put here the stack trace.