Skip to content

Commit e590e02

Browse files
committed
Merge branch 'main' into py/mld-ext
2 parents 29840be + 142dddf commit e590e02

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

HISTORY.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DynamicPPL Changelog
22

3-
## 0.37.3
3+
## 0.37.4
44

55
An extension for MarginalLogDensities.jl has been added.
66

@@ -10,6 +10,10 @@ The `marginalize` function returns a `MarginalLogDensities.MarginalLogDensity`,
1010
By default, this uses the Laplace approximation and sparse AD, making the marginalization computationally very efficient.
1111
Please see [the documentation](https://turinglang.org/DynamicPPL.jl/v0.37/api/#Marginalization) for further information.
1212

13+
## 0.37.3
14+
15+
Prevents inlining of `DynamicPPL.istrans` with Enzyme, which allows Enzyme to differentiate models where `VarName`s have the same symbol but different types.
16+
1317
## 0.37.2
1418

1519
Make the `resume_from` keyword work for multiple-chain (parallel) sampling as well.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "DynamicPPL"
22
uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8"
3-
version = "0.37.3"
3+
version = "0.37.4"
44

55
[deps]
66
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"

ext/DynamicPPLEnzymeCoreExt.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ end
1212

1313
# Mark istrans as having 0 derivative. The `nothing` return value is not significant, Enzyme
1414
# only checks whether such a method exists, and never runs it.
15-
@inline EnzymeCore.EnzymeRules.inactive_noinl(::typeof(DynamicPPL.istrans), args...) =
16-
nothing
15+
@inline EnzymeCore.EnzymeRules.inactive(::typeof(DynamicPPL.istrans), args...) = nothing
1716

1817
end

0 commit comments

Comments
 (0)