Skip to content

Commit

Permalink
Merge pull request #579 from ValerioB88/valerio
Browse files Browse the repository at this point in the history
Small bug in environment_pipeline when action_counter > random_action_after
  • Loading branch information
Hananel-Hazan committed Sep 16, 2022
2 parents a94bc98 + 3783825 commit a1b3357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindsnet/pipeline/environment_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def env_step(self) -> Tuple[torch.Tensor, float, bool, Dict]:
else:
self.action = torch.randint(
low=0, high=self.env.action_space.n, size=(1,)
)[0]
)[0].item()
tqdm.write(f"too many times {self.last_action} ")
else:
self.action = self.action_function(self, output=self.output)
Expand Down

0 comments on commit a1b3357

Please sign in to comment.