We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
dlib.find_max_global (Python) should work on every callable object.
dlib.find_max_global
It only works on objects with attribute __code__.
__code__
import dlib from functools import partial def f(arg0): return 0 dlib.find_max_global(partial(f, 2), [0.], [1.], 100)
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-112-da98f75572a0> in <module> ----> 1 dlib.find_max_global(partial(f, 2), [0.], [1.], 100) AttributeError: 'functools.partial' object has no attribute '__code__'
The text was updated successfully, but these errors were encountered:
Suggestion: https://docs.python.org/3/library/functions.html#callable
Sorry, something went wrong.
That would be cool. You should submit a PR :)
But I don't know C++ 🤕
No branches or pull requests
Expected Behavior
dlib.find_max_global
(Python) should work on every callable object.Current Behavior
It only works on objects with attribute
__code__
.Steps to Reproduce
The text was updated successfully, but these errors were encountered: