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 Enzyme,Reactant
Reactant.set_default_backend("cpu")
functionfoo(x,ids)
returnsum(x[ids])
endfunctionget_grad(x,ids)
dx = Enzyme.make_zero(x)
Enzyme.autodiff(Enzyme.Reverse, foo, Enzyme.Duplicated(x,dx), Enzyme.Const(ids))
return dx
end
dev= Reactant.to_rarray
x =rand(1000) |> dev
ids =rand(1:1000,100)
L =@compilefoo(x,ids) # works@infoL(x,ids) # works
g =@compileget_grad(x,ids) # fail@infog(x,ids)
Hello, I made an mwe for this,
I get the following error,
on Enzyme v0.13.28 and Reactant v0.2.24
The text was updated successfully, but these errors were encountered: