SAve an object with dill... failed #10513
Unanswered
jecampagne
asked this question in
Q&A
Replies: 1 comment
-
a guess: some jnp/jsp function is jitted. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Well I try to save the current state of an object...
First let me gives a working case.
The imports
Now some I/O helpers:
A simple class:
Then, playing with it is fine
This gives
and I can change a & b to use the f-func:
which leads to 90.0 as expected.
So far so good,
dill
is working with a regular Python class, ie. no problem.Let me just change a little bit the
A::f
functionit works too and we see that

newa.res
is anarray
while
gives
Well, now come the real use case which is not working:
The class...
I use it now like that
While the result of the algorithm is exactly what I am expecting, Here is the crash/error trace back when I try to store:
Sorry, I know that the above snippet is long and is not a working snippet, but to make it fine to play with it, is not so simple.
Does someone has an idea of what is going on?
Or, how do you proceed to save class state in JAX. (Notice that none of the GPemu class functions is jitted).
Thanks
Beta Was this translation helpful? Give feedback.
All reactions