Git Product home page Git Product logo

Comments (2)

brendenpetersen avatar brendenpetersen commented on September 24, 2024

Hi, unfortunately our multiobject parts of the code are not very well tested because it's a pretty narrow use case for us. I think the issue is over in program.py::Program.__getstate__ and program.py::Program.__setstate__. These define how multiprocessing passes Program objects back and forth, and apparently this was not done correctly for the multiobject=True case.

So, I would simply comments out the two functions Program.__getstate__ and Program.__setstate__. They are not necessary for using multiprocessing, and they only give a very small amount of speedup for multiobject=False. Actually, in our current internal version of the code (which we hope to update to Github soon!) we removed these two function since they've been problematic. Let us know if this works!

from deep-symbolic-optimization.

liruiluo avatar liruiluo commented on September 24, 2024

嗨,不幸的是,我们的multiobject部分代码没有经过很好的测试,因为这对我们来说是一个非常狭窄的用例。我认为这个问题已经结束program.py::Program.__getstate__program.py::Program.__setstate__。这些定义了如何来回multiprocessing传递对象,显然在这种情况下没有正确完成。Program``multiobject=True

所以,我会简单地注释掉这两个函数Program.__getstate__Program.__setstate__。它们不是 using 所必需的multiprocessing,并且它们只为 . 提供非常少量的加速multiobject=False。实际上,在我们当前的代码内部版本(我们希望尽快更新到 Github!)中,我们删除了这两个函数,因为它们存在问题。让我们知道这是否有效!

Thanks, that works for me!

from deep-symbolic-optimization.

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.