From c5c1bfdd35db89ff8bb80de5ced9dcb9f0277677 Mon Sep 17 00:00:00 2001 From: BatyLeo Date: Tue, 24 Dec 2024 12:21:55 +0100 Subject: [PATCH] bump DifferentiableFrankWolfe compat --- Project.toml | 2 +- src/layers/perturbed/perturbation.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 947003a..636745e 100644 --- a/Project.toml +++ b/Project.toml @@ -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" diff --git a/src/layers/perturbed/perturbation.jl b/src/layers/perturbed/perturbation.jl index 28cbad0..1c42877 100644 --- a/src/layers/perturbed/perturbation.jl +++ b/src/layers/perturbed/perturbation.jl @@ -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)),)