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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the bug with metatensor.torch.sort #647

Merged
merged 4 commits into from
Jun 11, 2024
Merged

fix the bug with metatensor.torch.sort #647

merged 4 commits into from
Jun 11, 2024

Conversation

DavideTisi
Copy link
Contributor

@DavideTisi DavideTisi commented Jun 8, 2024

fix #642

Fix the bug with metatensor.torch.sort #642.
The algorithm is not very smart but is constricted by TorchScript.
I also added the test to the torch part


馃摎 Download documentation preview for this pull-request

values=torch.tensor(
[
[1, 2],
[3, 5],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you remove the last comma on all tensor values? That should reduce a lot the vertical space taken by this code =)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@Luthaf Luthaf merged commit 5ebb12f into master Jun 11, 2024
23 checks passed
@Luthaf Luthaf deleted the bugfix/sort branch June 11, 2024 14:10
@Luthaf Luthaf mentioned this pull request Jun 12, 2024
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.

metatensor.torch.sort is broken
2 participants