-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arraydist
is showing unintended behavior.
#217
Comments
It seems the error arises from the use of LoopVectorization in your implementation of |
Any examples for adjoints of Array{Type}? I don't know how to do that. |
This looks like an issue in |
Ok so I narrowed down the problem here to a Bijectors-ReverseDiff issue. The problem is that for the |
julia> using Turing, ReverseDiff
julia> dist = arraydist(truncated.(Laplace.(0, [1, 2]), -10.0, 70.0));
julia> x = ReverseDiff.track(rand(dist));
julia> bijector(dist)(x)
2-element Array{ReverseDiff.TrackedReal{Float64,Float64,Nothing},1}:
TrackedReal<Fre>(-1.7994654328949322, 0.0, d6k, ---)
TrackedReal<Ggm>(-1.5788290245320968, 0.0, d6k, ---)
|
This TuringLang/Bijectors.jl#142 should fix this issue. |
Running the above code results in the following output/error.
Terminal output:
Full stacktrace: https://pastebin.com/hWvFG3sG
The custom adjoint I've defined for
logsumexp
function expectsTrackedArray
type butx
's type isArray{ReverseDiff.TrackedReal{Float64,Float64,Nothing},1}
.@mohamed82008
The text was updated successfully, but these errors were encountered: