Skip to content

Small bug in environment_pipeline when action_counter > random_action_after#579

Merged
Hananel-Hazan merged 1 commit intoBindsNET:masterfrom
ValerioB88:valerio
Sep 16, 2022
Merged

Small bug in environment_pipeline when action_counter > random_action_after#579
Hananel-Hazan merged 1 commit intoBindsNET:masterfrom
ValerioB88:valerio

Conversation

@ValerioB88
Copy link
Copy Markdown
Contributor

@ValerioB88 ValerioB88 commented Sep 6, 2022

If .item() is not specified, self.action will be a torch.tensor object. However, self.env.step(self.action) few lines later does not accept a tensor and it will break, therefore .item() is needed (as in other parts of the code when the action is computed).

  • I also created this general-named branch in case I find new things to add, instead of creating a new branch for each little thing. Hope that's ok.

… object. However, `self.env.step(self.action)` few lines later does not accept a tensor and it will break.
@Hananel-Hazan
Copy link
Copy Markdown
Collaborator

Wonderful, let me know when you done

@ValerioB88
Copy link
Copy Markdown
Contributor Author

I think that's it for now, feel free to review/merge. Thanks!

@Hananel-Hazan Hananel-Hazan merged commit a1b3357 into BindsNET:master Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants