Skip to content

Which arguments should I guard in __init__ in pytrees? #26016

Answered by jakevdp
Jacob-Stevens-Haas asked this question in Q&A
Discussion options

You must be logged in to vote

Which arguments need to allow object, Self, or None? All of them, just the first one, just the children, or just the aux_data?

Just children

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@jakevdp
Comment options

@Jacob-Stevens-Haas
Comment options

Answer selected by Jacob-Stevens-Haas
Comment options

You must be logged in to vote
1 reply
@Jacob-Stevens-Haas
Comment options

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