Skip to content

Commit

Permalink
bump DifferentiableFrankWolfe compat
Browse files Browse the repository at this point in the history
  • Loading branch information
BatyLeo committed Dec 24, 2024
1 parent 1c0510f commit c5c1bfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ InferOptFrankWolfeExt = "DifferentiableFrankWolfe"
ChainRulesCore = "1"
DensityInterface = "0.4.0"
DifferentiableExpectations = "0.2"
DifferentiableFrankWolfe = "0.2"
DifferentiableFrankWolfe = "0.3"
Distributions = "0.25"
DocStringExtensions = "0.9.3"
LinearAlgebra = "<0.0.1,1"
Expand Down
2 changes: 1 addition & 1 deletion src/layers/perturbed/perturbation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ $TYPEDSIGNATURES
Compute the gradient of the logdensity of η = θ ⊙ exp(εZ - ε²/2) w.r.t. θ., with Z ∼ N(0, 1).
!!! warning
η should be a relization of θ, i.e. should be of the same sign.
η should be a realization of θ, i.e. should be of the same sign.
"""
function normal_multiplicative_grad_logdensity(ε, η, θ)
return (inv.(ε^2 .* θ) .* (log.(abs.(η)) - log.(abs.(θ)) .+^2 / 2)),)
Expand Down

0 comments on commit c5c1bfd

Please sign in to comment.