Skip to content

Make sure functions with side-effects are included in TorchScript code#43

Merged
Luthaf merged 1 commit intometatensor:mainfrom
Luthaf:side-effect-functions
Jun 6, 2025
Merged

Make sure functions with side-effects are included in TorchScript code#43
Luthaf merged 1 commit intometatensor:mainfrom
Luthaf:side-effect-functions

Conversation

@Luthaf
Copy link
Member

@Luthaf Luthaf commented Jun 5, 2025

Fix #19 with the same trick as in metatensor/metatensor#928

Contributor (creator of pull-request) checklist

  • Tests updated (for new features and bugfixes)?
  • Documentation updated (for new features)?
  • Issue referenced (for PRs that solve an issue)?

Reviewer checklist

  • CHANGELOG updated with public API or any other important changes?

@Luthaf Luthaf requested a review from HaoZeke June 5, 2025 15:23
Copy link
Member

@HaoZeke HaoZeke left a comment

Choose a reason for hiding this comment

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

Tests work, and LGTM,but some comments (mostly for my own edification)

@Luthaf Luthaf merged commit e2d98d9 into metatensor:main Jun 6, 2025
7 checks passed
@Luthaf Luthaf deleted the side-effect-functions branch June 6, 2025 12:34
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.

register_autograd_neighbors call missing after conversion to TorchScript

2 participants