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

Fix non-torchscriptable LLPR module #287

Merged
merged 2 commits into from
Jul 8, 2024
Merged

Fix non-torchscriptable LLPR module #287

merged 2 commits into from
Jul 8, 2024

Conversation

frostedoyster
Copy link
Collaborator

@frostedoyster frostedoyster commented Jul 8, 2024

As in the title

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)?

📚 Documentation preview 📚: https://metatrain--287.org.readthedocs.build/en/287/

Copy link
Contributor

@PicoCentauri PicoCentauri left a comment

Choose a reason for hiding this comment

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

Wonderful and classic torchscript fix. 😅

ensemble_weights = buffer
if len(ensemble_weights.shape) == 0:
# ensemble weights not found
raise ValueError(
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 try to cover the error message?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Actually it's untestable because it fails before (since the output is not registered in the model), so I'll take it out and replace with a comment

@frostedoyster frostedoyster merged commit cf2d685 into main Jul 8, 2024
13 checks passed
@frostedoyster frostedoyster deleted the llpr-torchscript branch July 8, 2024 09:37
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.

2 participants