JLD.jl
JLD.jl copied to clipboard
TypeError: read_refs: in typeassert When loading Mocha Snapshot
using Compose using Colors using Measures using Mocha
TypeError: read_refs: in typeassert, expected Array{Array{T,N},1}, got Array{Array{T,N},1} in read_refs(::JLD.JldDataset, ::Type{Array{Array{T,N},1}}, ::Int32, ::Int32, ::Tuple{Int64}) at JLD.jl:486 in read_array(::JLD.JldDataset, ::HDF5.HDF5Datatype, ::Int32, ::Int32, ::Tuple{Int64}) at JLD.jl:422 in read(::JLD.JldDataset) at JLD.jl:387 in read_ref(::JLD.JldFile, ::HDF5.HDF5ReferenceObj) at JLD.jl:513 in macro expansion at jld_types.jl:451 [inlined] in jlconvert(::Type{JLD.AssociativeWrapper{AbstractString,Array{Array{T,N},1},Dict{AbstractString,Array{Array{T,N},1}}}}, ::JLD.JldFile, ::Ptr{UInt8}) at jld_types.jl:581 in read_scalar(::JLD.JldDataset, ::HDF5.HDF5Datatype, ::Type{T}) at JLD.jl:413 in read(::JLD.JldDataset) at JLD.jl:385 in read(::JLD.JldFile, ::String) at JLD.jl:361 in load_network(::JLD.JldFile, ::Mocha.Net{Mocha.CPUBackend}) at io.jl:89 in #218 at solvers.jl:158 [inlined] in #jldopen#11(::Array{Any,1}, ::Function, ::Mocha.##218#220{Mocha.Net{Mocha.CPUBackend}}, ::String, ::Vararg{String,N}) at JLD.jl:260 in load_snapshot(::Mocha.Net{Mocha.CPUBackend}, ::String, ::Void) at solvers.jl:157 in viszualize() at NN_visualization.jl:36 in include_string(::String, ::String) at loading.jl:441 in eval(::Module, ::Any) at boot.jl:234 in (::Atom.##65#68)() at eval.jl:102 in withpath(::Atom.##65#68, ::Void) at utils.jl:30 in withpath(::Function, ::Void) at eval.jl:38 in macro expansion at eval.jl:101 [inlined] in (::Atom.##64#67{Dict{String,Any}})() at task.jl:60
That looks like a malformed type. I think I may have included a fix for this in https://github.com/JuliaIO/JLD.jl/pull/169/files while attempting to get all the tests to pass on my PR