Ryan Stoner
Ryan Stoner
So the zero in `da` got dropped even before it was passed to autodiff. A workaround for most users may be to use `sparsevec` or `sparse` with array indices to...
Like you say, it may be more of an issue with SparseMatrixCSC. @Wimmerer
Full error message: ``` ERROR: Enzyme compilation failed. Current scope: ; ModuleID = 'text' source_filename = "text" target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128-ni:10:11:12:13" target triple = "x86_64-apple-darwin21.4.0" @_j_str1 = private unnamed_addr constant...
Reduced this down to: ``` a = [1.0] da = [0.0] function g(x) y = copy(x) d = IdDict() Base.setindex!(d, y, x) return sum(y) end Enzyme.autodiff(g, Duplicated(a,da)) ``` Based on...
Reduced this down further to a ccall in `Base.setindex!` in `deepcopy()` ``` function foo(x) d = IdDict{Float64,Float64}() key = 1; val = 2 inserted = Base.RefValue{Cint}(0) d.ht = ccall(:jl_eqtable_put, Array{Any,1},...
@tamiko I added that to the `cmake` invocation, and now it compiles without error. Thank you everyone for the explanations and comments! My original issue is solved now. Unless anyone...