Skip to content

How to convert str to PyTreeDef? #27022

Answered by jakevdp
jobs-git asked this question in Q&A
Discussion options

You must be logged in to vote

There is no general way to convert a string repr of a pytree object into a pytree object. You'll need to serialize and store the original object (for example, using pickle) rather than the string representation of it.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jobs-git
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jakevdp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants