You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Bijectors
using Bijectors: PlanarLayer
using Enzyme
function f(θ)
layer = PlanarLayer(θ[1:2], θ[3:4], θ[5:5])
flow = transformed(MvNormal(zeros(2), I), inverse(layer))
x = θ[6:7]
return logabsdetjac(flow.transform, x)
end
Enzyme.gradient(Enzyme.Forward, f, randn(7))
@mhauru can you identify [ideally via the backtrace] what calls the roots.jl, and where presently turing has a custom rule in the call chain. It would be wise to emluate existing rule infra.
MWE:
Output:
Enzyme v0.12.19, Bijectors v0.13.14.
The text was updated successfully, but these errors were encountered: