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
parallel_map as decorator? #1396
Comments
Yes uou can. Although, I do bot understand your need for two functions here |
I like that approach, as the parallel_map is very generic and it's a very expressive way to state that the function being decorated will be executed concurrently. Also, we could change the concurrency strategy in a future by only changing the decorator implementation. I'd call the decorator something like: |
It is generically useful, and should probably not be confined tonthe transpile dir |
@nonhermitian by two functions I mean first creating a function I get lost chasing the following code:
|
You really only need to define one function I have also tried to make a decorator for |
This foes not work due to the above pickling issue. |
What is the expected enhancement?
Is this possible? Right now when making a function you have to create a
function_X_parallal
and afunction_X
, where the 1st calls the 2nd using parallel_map. It would be nice if one could just write the 2nd, and decorate it to indicate parallel run.@nonhermitian @atilag thoughts?
The text was updated successfully, but these errors were encountered: