From ce3bcb03f5a129e7c5f520fb313b8c2315ae901d Mon Sep 17 00:00:00 2001 From: harisorgn Date: Thu, 20 Jul 2023 14:08:07 +0300 Subject: [PATCH 1/2] add `reconstruct` method for `Inverse{PDVecBijector}` --- src/utils.jl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils.jl b/src/utils.jl index b1076daf4..abd7b9da0 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -243,6 +243,12 @@ function reconstruct( return copy(val) end +function reconstruct( + ::Inverse{Bijectors.PDVecBijector}, ::MatrixDistribution, val::AbstractVector +) + return copy(val) +end + # TODO: Implement no-op `reconstruct` for general array variates. reconstruct(d::Distribution, val::AbstractVector) = reconstruct(size(d), val) From daecf0992f5ddec31def3c4bf8391f70d4d0d017 Mon Sep 17 00:00:00 2001 From: Hong Ge <3279477+yebai@users.noreply.github.com> Date: Thu, 20 Jul 2023 13:04:55 +0100 Subject: [PATCH 2/2] Update Project.toml --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 0585d3856..4e4eb4cac 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "DynamicPPL" uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8" -version = "0.23.4" +version = "0.23.5" [deps] AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"