Skip to content

Commit

Permalink
fix info not pass issue in PGPolicy (#787)
Browse files Browse the repository at this point in the history
close #775
  • Loading branch information
Trinkle23897 authored Dec 24, 2022
1 parent 4c3791a commit 1037627
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tianshou/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from tianshou import data, env, exploration, policy, trainer, utils

__version__ = "0.4.10"
__version__ = "0.4.11"

__all__ = [
"env",
Expand Down
2 changes: 1 addition & 1 deletion tianshou/policy/modelfree/pg.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def forward(
Please refer to :meth:`~tianshou.policy.BasePolicy.forward` for
more detailed explanation.
"""
logits, hidden = self.actor(batch.obs, state=state)
logits, hidden = self.actor(batch.obs, state=state, info=batch.info)
if isinstance(logits, tuple):
dist = self.dist_fn(*logits)
else:
Expand Down

0 comments on commit 1037627

Please sign in to comment.