Skip to content

Can't load binary when not working in Main #98

@DhairyaLGandhi

Description

@DhairyaLGandhi

MWE

This works since its applied in the context of Main.

using Flux, BSON
m = Chain(Dense(3,3), Dense(3,3), softmax)
BSON.@save "mwe.bson" m
const m = BSON.@load("mwe.bson")

Now replace this with a non-Main context.

module MWE

using Flux, BSON
# m = Chain(Dense(3,3), Dense(3,3), softmax)
# BSON.@save "mwe.bson" m
const m = BSON.@load("mwe.bson")

end

ref #91

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions