这是indexloc提供的服务,不要输入任何密码
Skip to content

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

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

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
@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.

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.

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