Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinkle23897 committed Apr 24, 2021
1 parent 68ae216 commit 2c1cc1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tianshou/policy/modelfree/trpo.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def learn( # type: ignore
" are poor and need to be changed.")

# optimize citirc
for _ in range(self._optim_critic_iters):
for _ in range(self._optim_critic_iters): # type: ignore
value = self.critic(b.obs).flatten()
vf_loss = F.mse_loss(b.returns, value)
self.optim.zero_grad()
Expand Down

0 comments on commit 2c1cc1d

Please sign in to comment.