Open heyyeahcrow opened 3 days ago
Hi, this looks like an error in tje 1.11 FFI call support in Enzyme. Two quick things: 1) Can you test on the latest version of enzyme (I think this ought be fixed, if not we should fix it) 2) Can you make a reproducer that only has a direct autodiff call? @ChrisRackauckas may be able to help you with this
Hi, this looks like an error in tje 1.11 FFI call support in Enzyme. Two quick things: 1) Can you test on the latest version of enzyme (I think this ought be fixed, if not we should fix it) 2) Can you make a reproducer that only has a direct autodiff call? @ChrisRackauckas may be able to help you with this
I updated it and still showed the same error. I'm currently trying the second path.
BTW, do I need to vectorize all the inputs and outputs of my ODE?
I don't think that should be needed here to get it to fail, but that's just an intuition
Hi,
I tried to use AutoEnzyme as an optimizer to build a neural network to predict parameters for ODEs following the example of DiffEqFlux, but it turned out to return an Enzyme internal error and a bunch of LLVM computations.
The error log: error_log_2024-11-19_15-56-09.txt The stacktrace: Stacktrace.txt
I also tried to run the example by replacing the Zygote and AutoZygote with Enzyme and AutoEnzyme, but it still returned the same error. They happened on both Mac and Windows systems.
Julia Version 1.11.1 Packages: [b0b7db55] ComponentArrays v0.15.18 [aae7a2af] DiffEqFlux v4.1.0 [7da242da] Enzyme v0.13.14 ⌅ [d9f16b24] Functors v0.4.12 [e6f89c97] LoggingExtras v1.1.0 [b2108857] Lux v1.2.3 [7f7a1694] Optimization v4.0.5 [42dfb2eb] OptimizationOptimisers v0.3.4 [1dea7af3] OrdinaryDiffEq v6.90.1 [91a5bcdd] Plots v1.40.9 [90137ffa] StaticArrays v1.9.8 [10745b16] Statistics v1.11.1 [e88e6eb3] Zygote v0.6.73 [ade2ca70] Dates v1.11.0 [56ddb016] Logging v1.11.0 [de0858da] Printf v1.11.0 [9a3f8284] Random v1.11.0