# Saving Flux model with BSON (julia 1.2)

**URL:** https://discourse.julialang.org/t/saving-flux-model-with-bson-julia-1-2/28383
**Category:** New to Julia
**Created:** [September 4, 2019, 6:02pm UTC](https://discourse.julialang.org/t/saving-flux-model-with-bson-julia-1-2/28383 "2019-09-04T18:02:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rio](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@rio](https://discourse.julialang.org/u/rio)
#### Post date: [September 4, 2019, 6:02pm UTC](https://discourse.julialang.org/t/saving-flux-model-with-bson-julia-1-2/28383/1 "2019-09-04T18:02:49Z")

</div>

Hi!

I am new to Julia and I would like to learn it. When I try to run the code below

```julia
using Flux, BSON

model = Chain(
    Conv((3, 3), 1=>16, pad=(1,1), relu),
    MaxPool((2,2)),
    Conv((3, 3), 16=>32, pad=(1,1), relu),
    MaxPool((2,2)),
    Conv((3, 3), 32=>32, pad=(1,1), relu),
    MaxPool((2,2)),
    x -> reshape(x, :, size(x, 4)),
    Dense(288, 10),
    softmax,
)

BSON.@save "foo.bson" model

```

I get

> ERROR: LoadError: type Method has no field sparam\_syms

Please, how could I fix this?

I running Julia 1.2.0 in the Atom 1.38.1 environment on MacOS. Flux v0.9.0, BSON v0.2.3

Thanks

---

<div class="post-metadata">

### Author: ![jchen975](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jchen975/32/8994_2.png) [@jchen975](https://discourse.julialang.org/u/jchen975)
#### Post date: [October 30, 2019, 8:07pm UTC](https://discourse.julialang.org/t/saving-flux-model-with-bson-julia-1-2/28383/2 "2019-10-30T20:07:06Z")

</div>

Are you able to resolve this? Apparently it should be fixed with BSON v0.2.4, but I’m restricted to 0.2.3 for some reason, on both Julia 1.2.0 and 1.1.1.  
[https://github.com/JuliaIO/BSON.jl/pull/37](https://github.com/JuliaIO/BSON.jl/pull/37)
