Flux load and save

Does Flux Load/Save require the same variable name?

@save "30x30_64x64.bson" model

@load "30x30_64x64.bson" model1

Error: Key model1 not found

Yes, according to BSON.jl, which does the save and load. The value of model which you save is associated with the variable name you provide, so you have to use it to access the model again.

2 Likes

In other words @load "30x30_64x64.bson" should work. And you should have model in your environment after running it.

2 Likes