-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
add a way to print or save summaries within an @jit function #364
Comments
Sounds great. If I understand it correctly, wouldn’t a I guess the called function‘s output needs to have fixed dtype and shape and they will be auto-detected during jit and an error will be thrown if they change? |
Interesting idea for a The purpose of Another way to think about it would be like we're passing around the GIL (without acquiring it), and that That's basically how functional languages like Haskell model effectful operations like IO (also worth looking at the writer monad and the state monad), though there's a lot of variation and detail. |
cc @gnecula thinking about recent things recently. (Just noticed this because of issue 2796.) |
We now have a new experimental feature (experimental/host_callback.py:id_tap) that should work to save summaries from compiled code. |
I believe that #3006 addresses this. |
Nice work, thanks! |
c.f. #196 and this comment in particular, maybe we could add something like this:
The text was updated successfully, but these errors were encountered: