Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed tutorial bug. #167

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

thisandthatuser
Copy link

I was going through the tutorial titled "Coding a simple User Defined Problem" and ran into one error.

The issue seems to be that the jit decorator cannot be applied to classes for the time being.

The fix is simple and is present in the subsequent iteration of the problem (jit_rosenbrock2): applying the jit decorator to a static method (_fitness) that is then called by the class method (fitness).

I tested this by creating the docs myself. Unfortunately, the information for this is a bit lacking and required some tweaking. Perhaps this is something that can be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant