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

Changed .keys() to get_keys() in batch class #1105

Merged
merged 2 commits into from
Apr 12, 2024

Conversation

arnaujc91
Copy link
Contributor

@arnaujc91 arnaujc91 commented Apr 10, 2024

Solves the inconsistency that iter(Batch) is not the same as Batch.keys() by "deprecating" the implicit .keys() method

Closes: #922

@MischaPanch
Copy link
Collaborator

Thanks, merging this!

@MischaPanch MischaPanch merged commit e2a2a68 into thu-ml:master Apr 12, 2024
3 of 4 checks passed
ZhengLi1314 pushed a commit to ZhengLi1314/tianshou_0.5.1 that referenced this pull request Apr 15, 2024
Solves the inconsistency that iter(Batch) is not the same as Batch.keys() by "deprecating" the implicit .keys() method

Closes: thu-ml#922
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.

Inconsistent __iter__ in batch
2 participants