-
-
Notifications
You must be signed in to change notification settings - Fork 216
Closed
Labels
ChainRulesadjoint -> rrule, and further integrationadjoint -> rrule, and further integrationbugSomething isn't workingSomething isn't workingcompiler
Description
On master, Zygote cannot be loaded. Commenting out precompile, what works and doesn't looks like:
julia> gradient(log, 1.0)
(1.0,)
julia> gradient(x -> log(x), 1.0)
ERROR: MethodError: no method matching iterate(::Nothing)
Stacktrace:
[1] indexed_iterate(I::Nothing, i::Int64)
@ Base ./tuple.jl:93
[2] chain_rrule
@ ~/.julia/dev/Zygote/src/compiler/chainrules.jl:223 [inlined]
[3] macro expansion
@ ~/.julia/dev/Zygote/src/compiler/interface2.jl:0 [inlined]
[4] _pullback(ctx::Zygote.Context{false}, f::var"#15#16", args::Float64)
@ Zygote ~/.julia/dev/Zygote/src/compiler/interface2.jl:9
[5] pullback(f::Function, cx::Zygote.Context{false}, args::Float64)
@ Zygote ~/.julia/dev/Zygote/src/compiler/interface.jl:44
[6] pullback
@ ~/.julia/dev/Zygote/src/compiler/interface.jl:42 [inlined]
[7] gradient(f::Function, args::Float64)
@ Zygote ~/.julia/dev/Zygote/src/compiler/interface.jl:96
julia> gradient(sum, [1,2])
([1.0, 1.0],)
julia> gradient(abs2∘sum, [1,2])
ERROR: MethodError: no method matching iterate(::Nothing)
julia> versioninfo()
Julia Version 1.10.0-DEV.918
Commit fe1e1c4bb4 (2023-03-30 18:36 UTC)
Platform Info:
OS: macOS (arm64-apple-darwin21.6.0)
CPU: 8 × Apple M1
anandijain
Metadata
Metadata
Assignees
Labels
ChainRulesadjoint -> rrule, and further integrationadjoint -> rrule, and further integrationbugSomething isn't workingSomething isn't workingcompiler