Flux four errors in Julia v0.7 none in v0.6.4


#1

I’m starting my migration from v0.6.4 and when testing Flux
it had four errors all related to to cudnn.jl with same message “Got exception ErrorException(“scalar getindex is disabled”) outside of a @test” . I tested all the required pkgs and with the exception of one broken test in StatsBase ambiguities all passed, also tested CUDAapi, drv, Arrays and GPUArrays all passed. In v0.6.4 Flux passes all tests. Both versions compiled from source no errors. Sorry for any confusion the errors occur when testing the package after installation I haven’t run any actual code. I am looking to use flux to help learn and understand RNN’s and the test errors seem apply to this. Hope I didn’t post too early. I will look for some examples and run them. Here is are the four test errors:
R = Flux.RNN: Error During Test at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:6
Got exception ErrorException(“scalar getindex is disabled”) outside of a @test
scalar getindex is disabled Stacktrace: [1] error(::String) at ./error.jl:33 [2] assertscalar at /home/scott/.julia/packages/GPUArrays/3E1qk/src/indexing.jl:6 [inlined] [3] getindex(::CuArray{Float32,1}, ::Int64) at home/scott/.julia/packages/GPUArrays/3E1qk/src/indexing.jl:29 [4] isassigned(::CuArray{Float32,1}, ::Int64) at ./abstractarray.jl:359 [5] show_delim_array(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::CuArray{Float32,1}, ::Char, ::String, ::Char, ::Bool, ::Int64, ::Int64) at ./show.jl:659
[6] show_delim_array at ./show.jl:649 [inlined]
[7] how_vector(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::CuArray{Float32,1}, ::Char, ::Char) at ./arrayshow.jl:442
[8] show_vector at ./arrayshow.jl:432 [inlined]
[9] show at ./arrayshow.jl:418 [inlined]
[10] show_delim_array(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Tuple{Tuple{Int64},CuArray{Float32,1}}, ::Char, ::Char, ::Char, ::Bool, ::Int64, ::Int64) at ./show.jl:695
[11] show_delim_array at ./show.jl:680 [inlined]
[12] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Tuple{Tuple{Int64},CuArray{Float32,1}}) at ./show.jl:714
[13] show_default(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Any) at ./show.jl:333
[14] show(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Any) at ./show.jl:316
[15] #sprint#329(::Nothing, ::Int64, ::Function, ::Function, ::MethodError, ::Vararg{Any,N} where N) at ./strings/io.jl:101
[16] #sprint at ./none:0 [inlined]
[17] #repr#331 at ./strings/io.jl:195 [inlined]
[18] repr at ./strings/io.jl:195 [inlined]
[19] Test.Error(::Symbol, ::Expr, ::MethodError, ::Array{Union{Ptr{Nothing}, InterpreterIP},1}, ::LineNumberNode) at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:144
[20] macro expansion at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:11 [inlined]
[21] macro expansion at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1152 [inlined]
[22] macro expansion at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:9 [inlined]
[23] macro expansion at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1152 [inlined]
[24] macro expansion at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:6 [inlined]
[25] macro expansion at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1079 [inlined]
[26] top-level scope at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:6
[27] include at ./boot.jl:317 [inlined]
[28] include_relative(::Module, ::String) at ./loading.jl:1038
[29] include(::Module, ::String) at ./sysimg.jl:29
[30] include(::String) at ./client.jl:398
[31] top-level scope at none:0
[32] include at ./boot.jl:317 [inlined]
[33] include_relative(::Module, ::String) at ./loading.jl:1038
[34] include(::Module, ::String) at ./sysimg.jl:29
[35] include(::String) at ./client.jl:398
[36] macro expansion at ./logging.jl:320 [inlined]
[37] macro expansion at /home/scott/.julia/packages/Flux/UHjNa/test/runtests.jl:26 [inlined]
[38] macro expansion at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1079 [inlined]
[39] top-level scope at /home/scott/.julia/packages/Flux/UHjNa/test/runtests.jl:26
[40] include at ./boot.jl:317 [inlined]
[41] include_relative(::Module, ::String) at ./loading.jl:1038
[42] include(::Module, ::String) at ./sysimg.jl:29
[43] exec_options(::Base.JLOptions) at ./client.jl:239
[44] start() at ./client.jl:432
batch_size = 1: Error During Test at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:9
Got exception CUDNNError(code 3, CUDNN_STATUS_BAD_PARAM) outside of a @test
CUDNNError(code 3, CUDNN_STATUS_BAD_PARAM)
Stacktrace:
[1] macro expansion at /home/scott/.julia/packages/CuArrays/F96Gk/src/dnn/error.jl:19 [inlined]
[2] cudnnRNNBackwardData(::Flux.CUDA.RNNDesc{Float32}, ::Int64, ::Array{CuArrays.CUDNN.TensorDesc,1}, ::CuArray{Float32,1}, ::Array{CuArrays.CUDNN.TensorDesc,1}, ::CuArray{Float32,1}, ::CuArrays.CUDNN.TensorDesc, ::CuArray{Float32,1}, ::Ptr{Nothing}, ::Ptr{Nothing}, ::CuArrays.CUDNN.FilterDesc, ::CuArray{Float32,1}, ::CuArrays.CUDNN.TensorDesc, ::CuArray{Float32,1}, ::Ptr{Nothing}, ::Ptr{Nothing}, ::Array{CuArrays.CUDNN.TensorDesc,1}, ::CuArray{Float32,1}, ::CuArrays.CUDNN.TensorDesc, ::CuArray{Float32,1}, ::Ptr{Nothing}, ::Ptr{Nothing}, ::CuArray{UInt8,1}, ::CuArray{UInt8,1}) at /home/scott/.julia/packages/Flux/UHjNa/src/cuda/cudnn.jl:193
[3] backwardData(::Flux.CUDA.RNNDesc{Float32}, ::CuArray{Float32,1}, ::CuArray{Float32,1}, ::CuArray{Float32,1}, ::Nothing, ::CuArray{Float32,1}, ::Nothing, ::CuArray{UInt8,1}) at /home/scott/.julia/packages/Flux/UHjNa/src/cuda/cudnn.jl:210
[4] backwardData(::Flux.CUDA.RNNDesc{Float32}, ::CuArray{Float32,1}, ::CuArray{Float32,1}, ::CuArray{Float32,1}, ::CuArray{Float32,1}, ::CuArray{UInt8,1}) at /home/scott/.julia/packages/Flux/UHjNa/src/cuda/cudnn.jl:218
[5] (::getfield(Flux.CUDA, Symbol("##11#12")){Flux.GRUCell{TrackedArray{…,CuArray{Float32,2}},TrackedArray{…,CuArray{Float32,1}}},TrackedArray{…,CuArray{Float32,1}},TrackedArray{…,CuArray{Float32,1}},CuArray{UInt8,1},Tuple{CuArray{Float32,1},CuArray{Float32,1}}})(::Tuple{CuArray{Float32,1},CuArray{Float32,1}}) at /home/scott/.julia/packages/Flux/UHjNa/src/cuda/cudnn.jl:329
[6] back
(::Flux.Tracker.Call{getfield(Flux.CUDA, Symbol("##11#12")){Flux.GRUCell{TrackedArray{…,CuArray{Float32,2}},TrackedArray{…,CuArray{Float32,1}}},TrackedArray{…,CuArray{Float32,1}},TrackedArray{…,CuArray{Float32,1}},CuArray{UInt8,1},Tuple{CuArray{Float32,1},CuArray{Float32,1}}},Tuple{Flux.Tracker.Tracked{CuArray{Float32,1}},Flux.Tracker.Tracked{CuArray{Float32,1}},Flux.Tracker.Tracked{CuArray{Float32,2}},Flux.Tracker.Tracked{CuArray{Float32,2}},Flux.Tracker.Tracked{CuArray{Float32,1}}}}, ::Tuple{CuArray{Float32,1},CuArray{Float32,1}}) at /home/scott/.julia/packages/Flux/UHjNa/src/tracker/back.jl:23
[7] back(::Flux.Tracker.Tracked{Tuple{CuArray{Float32,1},CuArray{Float32,1}}}, ::Tuple{CuArray{Float32,1},Int64}) at /home/scott/.julia/packages/Flux/UHjNa/src/tracker/back.jl:43
[8] foreach(::Function, ::Tuple{Flux.Tracker.Tracked{Tuple{CuArray{Float32,1},CuArray{Float32,1}}},Nothing}, ::Tuple{Tuple{CuArray{Float32,1},Int64},Nothing}) at ./abstractarray.jl:1844
[9] back_(::Flux.Tracker.Call{getfield(Flux.Tracker, Symbol("##236#238")){Flux.Tracker.TrackedTuple{Tuple{CuArray{Float32,1},CuArray{Float32,1}}},Int64},Tuple{Flux.Tracker.Tracked{Tuple{CuArray{Float32,1},CuArray{Float32,1}}},Nothing}}, ::CuArray{Float32,1}) at /home/scott/.julia/packages/Flux/UHjNa/src/tracker/back.jl:26
[10] back(::Flux.Tracker.Tracked{CuArray{Float32,1}}, ::CuArray{Float32,1}) at /home/scott/.julia/packages/Flux/UHjNa/src/tracker/back.jl:45
[11] back!(::TrackedArray{…,CuArray{Float32,1}}, ::CuArray{Float32,1}) at /home/scott/.julia/packages/Flux/UHjNa/src/tracker/back.jl:62
[12] macro expansion at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:25 [inlined]
[13] macro expansion at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1152 [inlined]
[14] macro expansion at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:9 [inlined]
[15] macro expansion at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1152 [inlined]
[16] macro expansion at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:6 [inlined]
[17] macro expansion at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1079 [inlined]
[18] top-level scope at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:6
[19] include at ./boot.jl:317 [inlined]
[20] include_relative(::Module, ::String) at ./loading.jl:1038
[21] include(::Module, ::String) at ./sysimg.jl:29
[22] include(::String) at ./client.jl:398
[23] top-level scope at none:0
[24] include at ./boot.jl:317 [inlined]
[25] include_relative(::Module, ::String) at ./loading.jl:1038
[26] include(::Module, ::String) at ./sysimg.jl:29
[27] include(::String) at ./client.jl:398
[28] macro expansion at ./logging.jl:320 [inlined]
[29] macro expansion at /home/scott/.julia/packages/Flux/UHjNa/test/runtests.jl:26 [inlined]
[30] macro expansion at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1079 [inlined]
[31] top-level scope at /home/scott/.julia/packages/Flux/UHjNa/test/runtests.jl:26
[32] include at ./boot.jl:317 [inlined]
[33] include_relative(::Module, ::String) at ./loading.jl:1038
[34] include(::Module, ::String) at ./sysimg.jl:29
[35] exec_options(::Base.JLOptions) at ./client.jl:239
[36] _start() at ./client.jl:432
R = Flux.GRU: Error During Test at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:6
Got exception ErrorException(“scalar getindex is disabled”) outside of a @test
scalar getindex is disabled
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] assertscalar at /home/scott/.julia/packages/GPUArrays/3E1qk/src/indexing.jl:6 [inlined]
[3] getindex(::CuArray{Float32,2}, ::Int64) at /home/scott/.julia/packages/GPUArrays/3E1qk/src/indexing.jl:29
[4] _getindex at ./abstractarray.jl:936 [inlined]
[5] getindex at ./abstractarray.jl:913 [inlined]
[6] isassigned(::CuArray{Float32,2}, ::Int64, ::Int64) at ./abstractarray.jl:359
[7] _show_nonempty(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::CuArray{Float32,2}, ::String) at ./arrayshow.jl:383
[8] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::CuArray{Float32,2}) at ./arrayshow.jl:421
[9] show_delim_array(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Tuple{Tuple{Int64,Int64},CuArray{Float32,2}}, ::Char, ::Char, ::Char, ::Bool, ::Int64, ::Int64) at ./show.jl:695
[10] show_delim_array at ./show.jl:680 [inlined]
[11] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Tuple{Tuple{Int64,Int64},CuArray{Float32,2}}) at ./show.jl:714
[12] show_default(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Any) at ./show.jl:333
[13] show(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Any) at ./show.jl:316
[14] #sprint#329(::Nothing, ::Int64, ::Function, ::Function, ::MethodError, ::Vararg{Any,N} where N) at ./strings/io.jl:101
[15] #sprint at ./none:0 [inlined]
[16] #repr#331 at ./strings/io.jl:195 [inlined]
[17] repr at ./strings/io.jl:195 [inlined]
[18] Test.Error(::Symbol, ::Expr, ::MethodError, ::Array{Union{Ptr{Nothing}, InterpreterIP},1}, ::LineNumberNode) at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:144
[19] macro expansion at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:11 [inlined]
[20] macro expansion at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1152 [inlined]
[21] macro expansion at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:9 [inlined]
[22] macro expansion at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1152 [inlined]
[23] macro expansion at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:6 [inlined]
[24] macro expansion at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1079 [inlined]
[25] top-level scope at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:6
[26] include at ./boot.jl:317 [inlined]
[27] include_relative(::Module, ::String) at ./loading.jl:1038
[28] include(::Module, ::String) at ./sysimg.jl:29
[29] include(::String) at ./client.jl:398
[30] top-level scope at none:0
[31] include at ./boot.jl:317 [inlined]
[32] include_relative(::Module, ::String) at ./loading.jl:1038
[33] include(::Module, ::String) at ./sysimg.jl:29
[34] include(::String) at ./client.jl:398
[35] macro expansion at ./logging.jl:320 [inlined]
[36] macro expansion at /home/scott/.julia/packages/Flux/UHjNa/test/runtests.jl:26 [inlined]
[37] macro expansion at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1079 [inlined]
[38] top-level scope at /home/scott/.julia/packages/Flux/UHjNa/test/runtests.jl:26
[39] include at ./boot.jl:317 [inlined]
[40] include_relative(::Module, ::String) at ./loading.jl:1038
[41] include(::Module, ::String) at ./sysimg.jl:29
[42] exec_options(::Base.JLOptions) at ./client.jl:239
[43] _start() at ./client.jl:432
R = Flux.LSTM: Error During Test at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:6
Got exception ErrorException(“scalar getindex is disabled”) outside of a @test
scalar getindex is disabled
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] assertscalar at /home/scott/.julia/packages/GPUArrays/3E1qk/src/indexing.jl:6 [inlined]
[3] getindex(::CuArray{Float32,1}, ::Int64) at /home/scott/.julia/packages/GPUArrays/3E1qk/src/indexing.jl:29
[4] isassigned(::CuArray{Float32,1}, ::Int64) at ./abstractarray.jl:359
[5] show_delim_array(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::CuArray{Float32,1}, ::Char, ::String, ::Char, ::Bool, ::Int64, ::Int64) at ./show.jl:659
[6] show_delim_array at ./show.jl:649 [inlined]
[7] show_vector(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::CuArray{Float32,1}, ::Char, ::Char) at ./arrayshow.jl:442
[8] show_vector at ./arrayshow.jl:432 [inlined]
[9] show at ./arrayshow.jl:418 [inlined]
[10] show_delim_array(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Tuple{Tuple{Int64},CuArray{Float32,1}}, ::Char, ::Char, ::Char, ::Bool, ::Int64, ::Int64) at ./show.jl:695
[11] show_delim_array at ./show.jl:680 [inlined]
[12] show(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Tuple{Tuple{Int64},CuArray{Float32,1}}) at ./show.jl:714
[13] show_default(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Any) at ./show.jl:333
[14] show(::Base.GenericIOBuffer{Array{UInt8,1}}, ::Any) at ./show.jl:316
[15] #sprint#329(::Nothing, ::Int64, ::Function, ::Function, ::MethodError, ::Vararg{Any,N} where N) at ./strings/io.jl:101
[16] #sprint at ./none:0 [inlined]
[17] #repr#331 at ./strings/io.jl:195 [inlined]
[18] repr at ./strings/io.jl:195 [inlined]
[19] Test.Error(::Symbol, ::Expr, ::MethodError, ::Array{Union{Ptr{Nothing}, InterpreterIP},1}, ::LineNumberNode) at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:144
[20] macro expansion at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:11 [inlined]
[21] macro expansion at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1152 [inlined]
[22] macro expansion at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:9 [inlined]
[23] macro expansion at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1152 [inlined]
[24] macro expansion at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:6 [inlined]
[25] macro expansion at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1079 [inlined]
[26] top-level scope at /home/scott/.julia/packages/Flux/UHjNa/test/cuda/cudnn.jl:6
[27] include at ./boot.jl:317 [inlined]
[28] include_relative(::Module, ::String) at ./loading.jl:1038
[29] include(::Module, ::String) at ./sysimg.jl:29
[30] include(::String) at ./client.jl:398
[31] top-level scope at none:0
[32] include at ./boot.jl:317 [inlined]
[33] include_relative(::Module, ::String) at ./loading.jl:1038
[34] include(::Module, ::String) at ./sysimg.jl:29
[35] include(::String) at ./client.jl:398
[36] macro expansion at ./logging.jl:320 [inlined]
[37] macro expansion at /home/scott/.julia/packages/Flux/UHjNa/test/runtests.jl:26 [inlined]
[38] macro expansion at /home/scott/julia/usr/share/julia/stdlib/v0.7/Test/src/Test.jl:1079 [inlined]
[39] top-level scope at /home/scott/.julia/packages/Flux/UHjNa/test/runtests.jl:26
[40] include at ./boot.jl:317 [inlined]
[41] include_relative(::Module, ::String) at ./loading.jl:1038
[42] include(::Module, ::String) at ./sysimg.jl:29
[43] exec_options(::Base.JLOptions) at ./client.jl:239
[44] _start() at ./client.jl:432

Tried running Shakespeare example but receive error chunk not defined. I’m still very much a novice when it comes to using julia when my skills improve I’ll revisit Flux.

H.Kramer


#2

Please provide a MWE as well as a detailed error (ie. with the backtrace).