Skip to content

Commit

Permalink
Merge pull request #252 from allenai/rev_to_0.2.1
Browse files Browse the repository at this point in the history
Updates for 0.2.1.
  • Loading branch information
Lucaweihs committed Feb 17, 2021
2 parents c3ff52c + 8c80f93 commit 49297d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.1a0
0.2.1
12 changes: 6 additions & 6 deletions allenact/algorithms/onpolicy_sync/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,12 @@ def act(self, rollouts: RolloutStorage):
rollouts.masks[rollouts.step : rollouts.step + 1],
)

# Assume actions do not contain a step dimension
actions = (
actor_critic_output.distributions.sample()
if not self.deterministic_agents
else actor_critic_output.distributions.mode()
)
# Assume actions do not contain a step dimension
actions = (
actor_critic_output.distributions.sample()
if not self.deterministic_agents
else actor_critic_output.distributions.mode()
)

return actions, actor_critic_output, memory, step_observation

Expand Down

0 comments on commit 49297d4

Please sign in to comment.