You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run batch(xs) with Julia 1.0 I receive this error:
Stacktrace:
[1] batchindex(::Array{Int64,2}, ::Int64) at /Users/ggordon-hall/.julia/packages/Flux/npL2p/src/utils.jl:27
[2] batch(::Array{Array{Int64,1},1}) at /Users/ggordon-hall/.julia/packages/Flux/npL2p/src/utils.jl:71
[3] (::getfield(Flux, Symbol("##4#7")){Array{Array{Any,1},1}})(::Int64) at ./none:0
[4] iterate at ./generator.jl:47 [inlined]
[5] collect(::Base.Generator{UnitRange{Int64},getfield(Flux, Symbol("##4#7")){Array{Array{Any,1},1}}}) at ./array.jl:619
[6] batchseq(::Array{Array{Array{Int64,1},1},1}, ::Int64) at /Users/ggordon-hall/.julia/packages/Flux/npL2p/src/utils.jl:94
[7] top-level scope at none:0
[8] include at ./boot.jl:317 [inlined]
[9] include_relative(::Module, ::String) at ./loading.jl:1038
[10] include(::Module, ::String) at ./sysimg.jl:29
[11] exec_options(::Base.JLOptions) at ./client.jl:229
[12] _start() at ./client.jl:421
It looks like Base.indices from Julia 0.6 has been renamed Base.axes in 1.0, but when I change the function name in utils.jl I get a different error:
ERROR: LoadError: DimensionMismatch("tried to assign 23-element array to 10×1 destination")
Stacktrace:
[1] throw_setindex_mismatch(::Array{Int64,1}, ::Tuple{Int64,Int64}) at ./indices.jl:144
[2] macro expansion at ./indices.jl:196 [inlined]
[3] _unsafe_setindex!(::IndexLinear, ::Array{Int64,2}, ::Array{Int64,1}, ::Base.OneTo{Int64}, ::Int64) at ./multidimensional.jl:636
[4] _setindex! at ./multidimensional.jl:631 [inlined]
[5] setindex! at ./abstractarray.jl:998 [inlined]
[6] batch(::Array{Array{Int64,1},1}) at /Users/ggordon-hall/.julia/packages/Flux/npL2p/src/utils.jl:71
[7] (::getfield(Flux, Symbol("##4#7")){Array{Array{Any,1},1}})(::Int64) at ./none:0
[8] iterate at ./generator.jl:47 [inlined]
[9] collect(::Base.Generator{UnitRange{Int64},getfield(Flux, Symbol("##4#7")){Array{Array{Any,1},1}}}) at ./array.jl:619
[10] batchseq(::Array{Array{Array{Int64,1},1},1}, ::Int64) at /Users/ggordon-hall/.julia/packages/Flux/npL2p/src/utils.jl:94
[11] top-level scope at none:0
[12] include at ./boot.jl:317 [inlined]
[13] include_relative(::Module, ::String) at ./loading.jl:1038
[14] include(::Module, ::String) at ./sysimg.jl:29
[15] exec_options(::Base.JLOptions) at ./client.jl:229
[16] _start() at ./client.jl:421
The text was updated successfully, but these errors were encountered:
When I run
batch(xs)
with Julia 1.0 I receive this error:It looks like
Base.indices
from Julia 0.6 has been renamedBase.axes
in 1.0, but when I change the function name inutils.jl
I get a different error:The text was updated successfully, but these errors were encountered: