Git Product home page Git Product logo

Comments (5)

brendenpetersen avatar brendenpetersen commented on July 28, 2024 1

It looks like cyfunc is None. If cyfunc is None, then the Cython component of DSO did not install properly. This should be okay though, as DSO is supposed to fall back to the non-Cython implementation of execute in this case. However, it looks like this fallback is not working properly.

In dso/dso/program.py, we have:

# Check if cython_execute can be imported; if not, fall back to python_execute
try:
    from dso.execute import cython_execute
    execute_function = cython_execute

I think this should be replaced with:

# Check if cython_execute can be imported; if not, fall back to python_execute
try:
    from dso import cyfunc
    from dso.execute import cython_execute
    execute_function = cython_execute

Can you see if this fix works?

from deep-symbolic-optimization.

AILWQ avatar AILWQ commented on July 28, 2024

Running the instance program given in the readme also reports the same error, so it shouldn't be a problem with the data set, maybe cyfunc.

from deep-symbolic-optimization.

mtrautner avatar mtrautner commented on July 28, 2024

I also have this same issue and believe it comes from cyfunc. Running in a virtual environment with the developer version of python did not fix the problem either.

from deep-symbolic-optimization.

AILWQ avatar AILWQ commented on July 28, 2024

Thank you for your reply! Your suggestion solved this problem. Prior to this, I tried using python_execute(traversal, X) directly in dso/dso/execute.py that also worked.

from deep-symbolic-optimization.

brendenpetersen avatar brendenpetersen commented on July 28, 2024

Awesome! Glad it worked :)

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.