Open ArnoStrouwen opened 3 years ago
I am able to run this but it looks like the gradients don't match. They do match for batch=0
. Is that what you observed? From slack I got the impression that zygote was erroring.
ERROR: MethodError: no method matching RecursiveArrayTools.VectorOfArray(::Tuple{Float64})
status `~/Dropbox/julia/small projects/dynamic experimental design tutorial/Project.toml`
[667455a9] Cubature v1.5.1
[aae7a2af] DiffEqFlux v1.34.1
[41bf760c] DiffEqSensitivity v6.43.1
[ef61062a] DiffEqUncertainty v1.8.0
[31c24e10] Distributions v0.24.15
[6a86dc24] FiniteDiff v2.8.0
[587475ba] Flux v0.11.6
[f6369f11] ForwardDiff v0.10.17
[429524aa] Optim v1.3.0
[1dea7af3] OrdinaryDiffEq v5.52.2
[91a5bcdd] Plots v1.11.0
[37e2e3b7] ReverseDiff v1.7.0
[e88e6eb3] Zygote v0.6.6
Interesting. Doesn't look the same as https://github.com/SciML/Quadrature.jl/issues/49 . I wonder if we can isolate this down to just Quadrature.jl
@ArnoStrouwen Is this in a new repl? Something doesn't seem right b/c RecursiveArrayTools isn't in Quadrature or DiffEqUncertainty. I just searched the repos to makes sure
This runs for me w/
[667455a9] Cubature v1.5.1
[41bf760c] DiffEqSensitivity v6.43.1
[ef61062a] DiffEqUncertainty v1.8.0
[31c24e10] Distributions v0.24.15
[6a86dc24] FiniteDiff v2.8.0
[f6369f11] ForwardDiff v0.10.17
[1dea7af3] OrdinaryDiffEq v5.52.2
[e88e6eb3] Zygote v0.6.6
But I get
ForwardDiff: 1.8264648587604257, 0.5292345598328614 Zygote: 7.146998823274198 , 1.8884006857029283 FiniteDiff: 1.6546890304376016, 3.702681873199691
It might be something Visual Studio Code loads, since I get the same results as you when I run from terminal.