Skip to content
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

getfield calls not supported #644

Closed
ChrisRackauckas opened this issue Mar 3, 2023 · 1 comment
Closed

getfield calls not supported #644

ChrisRackauckas opened this issue Mar 3, 2023 · 1 comment

Comments

@ChrisRackauckas
Copy link
Contributor

I see

emit_error(LLVM.Builder(B), orig, "Enzyme: not yet implemented in reverse mode, jl_getfield")
is caught, but just for reference an MWE:

using Enzyme
x  = [2.0, 2.0]
tmp = (;A = rand(2,2))
function f(x::Array{Float64}, y::Array{Float64})
    y .= tmp.A * x
    return nothing
end

Enzyme.autodiff(Forward, f, Duplicated(x, bx), Duplicated(y, by)); # Works

Enzyme.autodiff(Reverse, f, Duplicated(x, bx), Duplicated(y, by));
julia> Enzyme.autodiff(Reverse, f, Duplicated(x, bx), Duplicated(y, by));
ERROR: Enzyme: not yet implemented in reverse mode, jl_getfield
Stacktrace:
 [1] getproperty
   @ ./Base.jl:37
 [2] getproperty
   @ ./Base.jl:0
@wsmoses
Copy link
Member

wsmoses commented Mar 4, 2023

Duplicate of #176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants