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

Remove type restriction of log density function #68

Merged
merged 2 commits into from
Jun 26, 2022
Merged

Conversation

devmotion
Copy link
Member

This PR removes the type restriction of the log density function in DensityModel.

It feels a bit restrictive and makes it impossible to use e.g. callable structs - such as Turing.LogDensityFunction.

Copy link
Member

@torfjelde torfjelde left a comment

Choose a reason for hiding this comment

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

LGTM!

@devmotion devmotion merged commit 9b3ac5a into master Jun 26, 2022
@delete-merged-branch delete-merged-branch bot deleted the dw/densitymodel branch June 26, 2022 13:32
kaandocal added a commit to kaandocal/AdvancedMH.jl that referenced this pull request Sep 27, 2023
[Diff since v0.6.7](TuringLang/AdvancedMH.jl@v0.6.7...v0.6.8)

**Merged pull requests:**
- Remove type restriction of log density function (TuringLang#68) (@devmotion)
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.

None yet

2 participants