From 637df3a5a1310149f3a57125ef864494972f7730 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Fri, 10 Mar 2023 08:46:33 +0100 Subject: [PATCH] Fix deprecations (#249) * Fix deprecations * Update Project.toml --- Project.toml | 2 +- src/bijectors/stacked.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 4291ab1a..56d5fe36 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "Bijectors" uuid = "76274a88-744f-5084-9051-94815aaf08c4" -version = "0.12.2" +version = "0.12.3" [deps] ArgCheck = "dce04be8-c92d-5529-be00-80e4d2c0e197" diff --git a/src/bijectors/stacked.jl b/src/bijectors/stacked.jl index f8fdada9..de9049a6 100644 --- a/src/bijectors/stacked.jl +++ b/src/bijectors/stacked.jl @@ -106,7 +106,7 @@ function logabsdetjac( end function logabsdetjac( - b::Stacked{<:Tuple{Vararg{<:Any, N}}, <:Tuple{Vararg{<:Any, N}}}, + b::Stacked{<:NTuple{N, Any}, <:NTuple{N, Any}}, x::AbstractVector{<:Real} ) where {N} init = sum(logabsdetjac(b.bs[1], x[b.ranges[1]])) @@ -129,7 +129,7 @@ end # logjac += sum(_logjac) # return (vcat(y_1, y_2), logjac) # end -@generated function with_logabsdet_jacobian(b::Stacked{<:Tuple{Vararg{<:Any, N}}, <:Tuple{Vararg{<:Any, N}}}, x::AbstractVector) where {N} +@generated function with_logabsdet_jacobian(b::Stacked{<:NTuple{N, Any}, <:NTuple{N, Any}}, x::AbstractVector) where {N} expr = Expr(:block) y_names = []