Skip to content

Commit 4457fca

Browse files
Relax Zygote compat from 0.7.10 to 0.7
This allows using any Zygote 0.7.x version, which is needed to work around a Julia base bug (typo in Base.Meta.partially_inline!) that is triggered by Zygote 0.7.10 when differentiating through @cfunction with type parameters. The specific error occurs in Julia's base/meta.jl:412 where `spvals` is used instead of `static_param_values`, causing an "UndefVarError: `spvals` not defined" error when using Zygote with packages like Cubature.jl. By relaxing the constraint to allow Zygote 0.7.0-0.7.9, downstream packages can avoid this bug until Julia fixes the typo in base. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
1 parent 7a99268 commit 4457fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Tables = "1.12"
7272
Test = "1"
7373
Tracker = "0.2.34"
7474
Unitful = "1"
75-
Zygote = "0.7.10"
75+
Zygote = "0.7"
7676
julia = "1.10"
7777

7878
[extras]

0 commit comments

Comments
 (0)