Closed just-walk closed 3 months ago
Yeah this is an unfortunate issue/bug introduced in Julia 1.10 into SparseArrays here (https://github.com/JuliaSparse/SparseArrays.jl/commit/c402d09cf05492179fad2def5632e354a81f5b30) which will occur during a type unstable array constructor (or hvcat more specifically).
I'd recommend you allocate you array with undef then set the value as a workaround, or use a Julia before the bug was introduced in 1.10.
We should look more closely at this, but closing as duplicate issue of https://github.com/EnzymeAD/Enzyme.jl/issues/1134
I've run into an issue where the following code will produce an error, depending on which packages I have loaded.
With this set of package declarations, e.g., the result is as expected. Input A:
Output A:
With this set of package declarations, an error is encountered. Input B:
Output B:
It looks like the issue is with SparseArrays.jl. If I replace
using FiniteDifferences
above withusing SparseArrays
, then there is a similar error. What's going on? I'm not explicitly using any SparseArray types, but it seems to be running into issues trying to compile them.