Skip to content

Commit

Permalink
Fix deprecations (#249)
Browse files Browse the repository at this point in the history
* Fix deprecations

* Update Project.toml
  • Loading branch information
devmotion authored Mar 10, 2023
1 parent a11d5da commit 637df3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/bijectors/stacked.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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]]))
Expand All @@ -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 = []

Expand Down

2 comments on commit 637df3a

@torfjelde
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/79313

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.12.3 -m "<description of version>" 637df3a5a1310149f3a57125ef864494972f7730
git push origin v0.12.3

Please sign in to comment.