You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just curious on how possible to have support for this or to extend nb_func to allow it to be pickled?
This comes up in MLX since compiled functions are nb_func. And sometimes it's convenient for a Python class to hold a function as an attribute. We can work around it by wrapping stuff in user defined Python classes.. but it's inconvenient and confusing for users who do not know about this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Just curious on how possible to have support for this or to extend
nb_func
to allow it to be pickled?This comes up in MLX since compiled functions are
nb_func
. And sometimes it's convenient for a Python class to hold a function as an attribute. We can work around it by wrapping stuff in user defined Python classes.. but it's inconvenient and confusing for users who do not know about this.Beta Was this translation helpful? Give feedback.
All reactions