Skip to content

Commit b02658f

Browse files
CompatHelper: bump compat for "PDMats" to "0.11" (#153)
* CompatHelper: bump compat for "PDMats" to "0.11" * Update Project.toml * Try to fix ReverseDiff error Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: David Widmann <[email protected]>
1 parent 9806ec3 commit b02658f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Distributions = "0.23.3, 0.24"
3232
FillArrays = "0.8, 0.9, 0.10, 0.11"
3333
ForwardDiff = "0.10.6"
3434
NaNMath = "0.3"
35-
PDMats = "0.9, 0.10"
35+
PDMats = "0.9, 0.10, 0.11"
3636
Requires = "1"
3737
SpecialFunctions = "0.8, 0.9, 0.10, 1"
3838
StaticArrays = "0.12, 1.0"

src/reversediffx.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88

99
logsumexp(x::TrackedArray; dims=:) = track(logsumexp, x, dims = dims)
1010
@grad function logsumexp(x::AbstractArray; dims)
11-
lse = logsumexp(value(x), dims = dims)
12-
return lse, Δ ->.* exp.(x .- lse),)
11+
x_value = value(x)
12+
lse = logsumexp(x_value; dims=dims)
13+
return lse, Δ ->.* exp.(x_value .- lse),)
1314
end
1415

1516
############

test/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Distributions = "0.24.3"
2222
FiniteDifferences = "0.11.3, 0.12"
2323
ForwardDiff = "0.10.12"
2424
NNlib = "0.7.10"
25-
PDMats = "0.10.1"
25+
PDMats = "0.10.1, 0.11"
2626
ReverseDiff = "1.4.4"
2727
StatsBase = "0.33.2"
2828
StatsFuns = "0.9.6"

0 commit comments

Comments
 (0)