Skip to content

Trace detection when args are pytrees #17704

Answered by jakevdp
pierreglaser asked this question in General
Discussion options

You must be logged in to vote

Hi - you're correct that this function assumes the input is a flattened list of array-like objects. At the level of the stack where this is called, pytrees have already been flattened away, so there shouldn't be any other structure here. This is an internal utility that you shouldn't need to call directly – can you say more about what code you were running when you ran into this problem?

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by pierreglaser
Comment options

You must be logged in to vote
6 replies
@pierreglaser
Comment options

@jakevdp
Comment options

@pierreglaser
Comment options

@patrick-kidger
Comment options

@pierreglaser
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants