-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: InitError: LoadError: Can't differentiate loopinfo expression #393
Comments
should be handled the same as the |
We aren't handling |
If another report is helpful.. I'm also seeing this with Zygote v0.4.1 on nightly
|
Bump @MikeInnes Is there any update on this? This issue is causing all packages that depend on Zygote to fail the daily PkgEval builds. Here is the log output that I get when I try to run
Julia version info:
|
You can probably fix the immediate issue by adding It's a bit surprising that we're hitting such metadata for any of the functions we compile on startup, though. If something has changed in base to cause that, that might need looking into as well. |
After adding julia> using Zygote
ERROR: InitError: LoadError: Mutating arrays is not supported
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] (::Zygote.var"#994#995")(::Nothing) at /Users/andreasnoack/.julia/dev/Zygote/src/lib/array.jl:44
[3] (::Zygote.var"#2646#back#996"{Zygote.var"#994#995"})(::Nothing) at /Users/andreasnoack/.julia/packages/ZygoteRules/6nssF/src/adjoint.jl:49
[4] macro expansion at ./broadcast.jl:909 [inlined]
[5] macro expansion at ./simdloop.jl:77 [inlined]
[6] copyto! at ./broadcast.jl:908 [inlined]
[7] copyto! at ./broadcast.jl:863 [inlined]
[8] (::typeof(∂(copyto!)))(::FillArrays.Fill{Float32,1,Tuple{Base.OneTo{Int64}}}) at /Users/andreasnoack/.julia/dev/Zygote/src/compiler/interface2.jl:0
[9] copy at ./broadcast.jl:839 [inlined]
[10] materialize at ./broadcast.jl:819 [inlined]
[11] #1734 at /Users/andreasnoack/.julia/dev/Zygote/src/precompile.jl:22 [inlined]
[12] (::typeof(∂(#1734)))(::Float32) at /Users/andreasnoack/.julia/dev/Zygote/src/compiler/interface2.jl:0
[13] (::Zygote.var"#26#27"{typeof(∂(#1734))})(::Float32) at /Users/andreasnoack/.julia/dev/Zygote/src/compiler/interface.jl:38
[14] gradient(::Function, ::Array{Float64,1}) at /Users/andreasnoack/.julia/dev/Zygote/src/compiler/interface.jl:47
[15] top-level scope at /Users/andreasnoack/.julia/dev/Zygote/src/precompile.jl:22
[16] include(::Module, ::String) at ./Base.jl:377
[17] include at /Users/andreasnoack/.julia/dev/Zygote/src/Zygote.jl:1 [inlined]
[18] precompile at /Users/andreasnoack/.julia/dev/Zygote/src/Zygote.jl:43 [inlined]
[19] (::Zygote.var"#1724#1725")() at /Users/andreasnoack/.julia/packages/Requires/9Jse8/src/init.jl:11
[20] __init__() at /Users/andreasnoack/.julia/packages/Requires/9Jse8/src/init.jl:18
[21] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:697
[22] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:781
[23] _require(::Base.PkgId) at ./loading.jl:1006
[24] require(::Base.PkgId) at ./loading.jl:927
[25] require(::Module, ::Symbol) at ./loading.jl:922
in expression starting at /Users/andreasnoack/.julia/dev/Zygote/src/precompile.jl:22
during initialization of module Zygote |
Great, that's the next error you expect if we're hitting some The way our broadcast works is that it explicitly intercepts |
It appears that this broke with
|
Ok, interesting, so it sounds like a change to how splatting works has caused this, not a change to user code in broadcast. I'll take a look at that. |
Zygote should probably use |
This is on a 3 day old master branch of Julia:
And occurs when
using Zygote
:The error message from #229 sounds similar, but am guessing they're different problems. Feel free to close if this is a duplicate.
EDIT:
The error also shows up here: https://travis-ci.org/FluxML/Zygote.jl/jobs/608155890
The text was updated successfully, but these errors were encountered: