Skip to content
New issue

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

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

Already on GitHub? # to your account

Add non in-place version of Batch.to_torch #1117

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

dantp-ai
Copy link
Contributor

@dantp-ai dantp-ai commented Apr 17, 2024

Closes: #1116

API Extensions

Breaking Changes

 * Breaking change: Previous in-place `Batch.to_torch` is now `Batch.to_torch_` (following naming convention of other in-place methods in codebase).
 * Update places where in-place was expected
   * Add tests for both to_torch/to_torch_
@MischaPanch
Copy link
Collaborator

Look good, thank you, merging this!

For the future @dantp-ai: pls also modify the CHANGELOG.md as part of the PR. I'll be adjusting the readme on master anyway and will add the missing entry

@MischaPanch MischaPanch merged commit 6935a11 into thu-ml:master Apr 17, 2024
4 checks passed
@dantp-ai
Copy link
Contributor Author

Sounds good. I actually thought I do the changelog commit after the review has finished, but it doesn't hurt to have it also in there for the review phase and update it too if necessarily.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the non-in-place counterpart of Batch.to_torch
2 participants