Giter VIP home page Giter VIP logo

Comments (4)

drasmuss avatar drasmuss commented on July 20, 2024 1

I'll take a look into the pickling behaviour, but if you want a way to do this for now that doesn't rely on pickling you can use the sim.save/load_params functions (which will save the parameters in a TensorFlow format, rather than through pickle). E.g.

net = build_network()
with nengo_dl.Simulator(net) as sim:
    sim.train(...)
    sim.save_params("my_params")

then to load them into a different backend

net = build_network()
with nengo_dl.Simulator(net) as sim:
    sim.load_params("my_params")
    sim.freeze_params()

with another_backend.Simulator(net) as sim:
    ...

from nengo-dl.

arvoelke avatar arvoelke commented on July 20, 2024

Oh neat. I was aware of those other methods but hadn't thought to combine them with the approach here. That should be good for now, thanks!

from nengo-dl.

drasmuss avatar drasmuss commented on July 20, 2024

Might be fixed in nengo/nengo#1584?

from nengo-dl.

drasmuss avatar drasmuss commented on July 20, 2024

Confirmed that this is resolved by the above fix in nengo core. That change hasn't yet made its way into a nengo core release, so anyone running into this issue should check out the development version of nengo core (3.1.0).

from nengo-dl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.