inheritence and @register_pytree_node_class #15308
Unanswered
jecampagne
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I ran your code and was unable to reproduce the error. I had to slightly modify it ( from jax.tree_util import tree_flatten
tree_flatten(Amodif()) To avoid the need for more guesswork, can you edit your question so that it contains a minimal reproducible example of the code you're running when you see the reported error? Thanks. |
Beta Was this translation helpful? Give feedback.
3 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.
-
Hello,
It may be a stupid question raised by my ignorance, so do not worry too much.
Here is the use case
Then let us define
Now to make a test I need to make a A class that overload the f-function of Base.
I was trying so
But I get AttributeError: type object 'Amodif' has no attribute 'tree_unflatten'
So does someone knows how to inherit from A class and overlead Base::f ?
Beta Was this translation helpful? Give feedback.
All reactions