Skip to content

Instantly share code, notes, and snippets.

@tbenst
Created January 24, 2018 19:34
Show Gist options
  • Save tbenst/8efe65c10f50dc5166a88f9d443989e0 to your computer and use it in GitHub Desktop.
Save tbenst/8efe65c10f50dc5166a88f9d443989e0 to your computer and use it in GitHub Desktop.
Python2 pickle -> Julia jld
using PyCall, JLD
@pyimport pickle as pkl
@pywith pybuiltin("open")("trained_mnist_model","rb") as f begin
global cpts = pkl.load(f)
end
save("trained_mnist_model.jld", "data", cpts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment