Open ViralBShah opened 5 years ago
Odd, it's working for me on both 1.0 and 1.2 with tagged versions. Can you show your versioinfo, manifest status etc?
I got this error as well, on 1.1. This is a bummer, since I was hoping to show this tonight :(
i=1
i=3
i=5
i=7
i=9
i=11
Internal error: encountered unexpected error in runtime:
BoundsError(a=Array{Core.Compiler.NewNode, (4,)}[
Core.Compiler.NewNode(pos=5, attach_after=false, typ=Bool, node=Expr(:call, Core.:(===), SSAValue(2), 0x01), line=0),
Core.Compiler.NewNode(pos=41, attach_after=false, typ=Bool, node=Expr(:call, Core.:(===), SSAValue(40), 0x01), line=0),
Core.Compiler.NewNode(pos=51, attach_after=false, typ=Bool, node=Expr(:call, Core.:(===), SSAValue(50), 0x01), line=0),
Core.Compiler.NewNode(pos=78, attach_after=false, typ=Bool, node=Expr(:call, Core.:(===), SSAValue(75), 0x01), line=0)], i=(25,))
rec_backtrace at /Users/osx/buildbot/slave/package_osx64/build/src/stackwalk.c:94
record_backtrace at /Users/osx/buildbot/slave/package_osx64/build/src/task.c:217 [inlined]
jl_throw at /Users/osx/buildbot/slave/package_osx64/build/src/task.c:417
jl_bounds_error_ints at
I was using Julia 1.1.
Note that it still gives the right answer. And the error does not happen on Zygote 0.3.1 with Julia 1.1.
BTW, I would be ok if we say Julia 1.2 is the new min for Zygote. Hopefully it is not too far.
@aviks are you able to try 1.2 with it? I'm hoping this is specific to 1.1, but don't have a copy handy to test this instant.
I think there's a reasonable chance (though I'm not certain) that this is https://github.com/JuliaLang/julia/pull/31129, in which case there's not much to be done other than not using 1.1.
It's not ideal to put a hard version bound on 1.2, since several users want to use Zygote on 1.0 and upgrade gradually, but we can certainly make it clear that 1.1 and below are not officially supported.
Just a note to self, but indeed this does reproduce for me on 1.1.
This used to work with Zygote 0.3.1 but now gives the following compiler error for 0.3.2.