Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small bug in environment_pipeline when action_counter > random_action_after #579

Merged
merged 1 commit into from
Sep 16, 2022

Conversation

ValerioB88
Copy link
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
Collaborator

Wonderful, let me know when you done

@ValerioB88
Copy link
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