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

Bugfix for Optim.jl on models with different linked dimensionality #2196

Merged
merged 4 commits into from
Apr 19, 2024

Conversation

torfjelde
Copy link
Member

See the test for an example that is currently breaking.

TL;DR: immutable versions of invlink and link avoid the issues of changing dimensionality between linked and invlinked reps that was causing this issue.

Probably related: TuringLang/DynamicPPL.jl#525

NOTE: The Optim.jl interface and everything is due a rewrite IMO, but that is beyond the scope of this PR (because time is finite 🙏)

@coveralls
Copy link

Pull Request Test Coverage Report for Build 8758641442

Details

  • 0 of 3 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 0.0%

Changes Missing Coverage Covered Lines Changed/Added Lines %
ext/TuringOptimExt.jl 0 3 0.0%
Totals Coverage Status
Change from base Build 8269713926: 0.0%
Covered Lines: 0
Relevant Lines: 1367

💛 - Coveralls

@torfjelde
Copy link
Member Author

@yebai this should be a quick merge

@yebai yebai merged commit fa6f30a into master Apr 19, 2024
11 checks passed
@yebai yebai deleted the torfjelde/optim-bugfix branch April 19, 2024 21:25
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.

3 participants