Skip to content

Commit

Permalink
Update src/bijectors/named_bijector.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde committed Sep 22, 2020
1 parent 8745a90 commit 01da105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bijectors/named_bijector.jl
Expand Up @@ -29,7 +29,7 @@ struct NamedBijector{names, Bs<:NamedTuple{names}} <: AbstractNamedBijector
bs::Bs
end

@inline names_to_bijectors(b::NamedBijector) = b.bs
names_to_bijectors(b::NamedBijector) = b.bs

@generated function (b::NamedBijector{names})(x::NamedTuple) where {names}
return :(merge(x, ($([:($n = b.bs.$n(x.$n)) for n in names]...), )))
Expand Down

0 comments on commit 01da105

Please sign in to comment.