Skip to content
Discussion options

You must be logged in to vote

You can register the dataclass as a pytree if you want it to be compatible with jit and other transforms; for more information see Extending PyTrees. If it's not clear how to apply that to the situation you are facing, you might edit the question to add a minimal reproducible example so that it's more clear to others exactly what you're trying to do.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sharadmv
Comment options

sharadmv Jun 8, 2022
Collaborator

Answer selected by sharadmv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants