BSON.jl
BSON.jl copied to clipboard
Looks like serializing functions with keyword arguments doesn't work: ``` julia> using BSON julia> f = (;x)->x^2 #7 (generic function with 1 method) julia> BSON.@save "test.bson" f julia> BSON.@load "test.bson"...
When I save range in a BSON (BSON.jl version 0.3.5) file Julia 1.6.2 with: ``` a = 0.0:0.1:1.0 @save test.bson a ``` and attempt to load this file with BSON...
MWE (in a clean temporary environment): ```julia (jl_QADwAF) pkg> st Status `/tmp/jl_QADwAF/Project.toml` [fbb218c0] BSON v0.3.5 [90137ffa] StaticArrays v1.5.1 julia> VERSION v"1.8.0-rc3" julia> using BSON, StaticArrays julia> d = Dict(["foo" =>...
AFAICT it isn't mentioned anywhere in the readme. Might be a good opportunity to get Documenter up and running too.
This came up in PkgEval: ``` Anonymous Functions: Error During Test at /home/pkgeval/.julia/packages/BSON/rOaki/test/runtests.jl:125 Got exception outside of a @test setfield!: const field .names of type TypeName cannot be changed Stacktrace:...
```julia using BSON import LinearAlgebra as LA e = LA.eigen(randn(5,5)) BSON.@save "temp.bson" e BSON.@load "temp.bson" e # ERROR ``` Stacktrace: ``` ERROR: UndefVarError: LinearAlgebra not defined Stacktrace: [1] (::BSON.var"#31#32")(m::Module, f::String)...
With #94, I can save and load data that have anonymous methods in Julia 1.6. However, when I load such a BSON file that's saved with the previous version of...
I am trying to use BSON. I have some custom data types in my project so I thought I'd use the @__MODULE___ option, but sadly both with and without, I...
Hi, I wonder whether @save can save a gpu model weights properly. Here's a MWE (MWE.jl): `using DifferentialEquations, Flux, DiffEqFlux, NPZ, Printf, CUDA using BSON: @save, @load CUDA.allowscalar(false) dudt =...
The value type of Dict with symbols keys is not preserved (it is broadened to Any) ```julia julia> d = Dict(:a=>1, :b=>2) Dict{Symbol, Int64} with 2 entries: :a => 1...