JuliaML / MLDatasets.jl

Utility package for accessing common Machine Learning datasets in Julia
https://juliaml.github.io/MLDatasets.jl/stable
MIT License
228 stars 47 forks source link

World age issue wtih read_pytorch #167

Closed Dsantra92 closed 2 years ago

Dsantra92 commented 2 years ago

read_pytorch throws world age issues.

julia> MLDatasets.read_pytorch("train.pt")
ERROR: MethodError: no method matching THload(::String)
The applicable method may be too new: running in world age 32451, while current world is 32460.
Closest candidates are:
  THload(::AbstractString) at ~/.julia/packages/Pickle/pwvBM/src/torch/torch_load.jl:62 (method too new to be called from this world context.)
  THload(::Pickle.Torch.TorchPickler, ::Any) at ~/.julia/packages/Pickle/pwvBM/src/torch/torch_load.jl:66 (method too new to be called from this world context.)
Stacktrace:
 [1] read_pytorch(path::String)
   @ MLDatasets ~/MLDatasets.jl/src/io.jl:28
 [2] top-level scope
   @ REPL[2]:1