# BSON Loading Flux NN model - error - reference to NNlib

**URL:** <https://discourse.julialang.org/t/bson-loading-flux-nn-model-error-reference-to-nnlib/49112>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 27, 2020, 11:29am UTC](https://discourse.julialang.org/t/bson-loading-flux-nn-model-error-reference-to-nnlib/49112 "2020-10-27T11:29:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [October 27, 2020, 11:29am UTC](https://discourse.julialang.org/t/bson-loading-flux-nn-model-error-reference-to-nnlib/49112/1 "2020-10-27T11:29:21Z")

</div>

Hi. I am trying to use BSON.@load within DaemonMode.jl

DaemonMode.jl has acknowledged reference issues arising from:  
“…DaemonMode uses a module to encapsulate the code…”  
but for example in the case of ‘include’ this is easily addressed by using the full reference:

```julia
Base.include(@ __MODULE__ ,<filename>)

```

When I try to load a Flux NN model with BSON, I get an error of NNlib being unknown. Is there any subcommand I can use to communicate the unknown reference? [I tried

```julia
using NNlib

```

which did not help.]

Thanks for any help (or suggestions of alternative reference-free methods for saving/loading a Flux NN models)
