Skip to content

Making good use of fori_loop when shapes change #16691

Closed Answered by jakevdp
fuglede asked this question in Q&A
Discussion options

You must be logged in to vote

In general, I think the best solution here would be to change update_state so that it returns padded arrays of the same shape as the input, and then use a fori_loop. Without more information about what update_state does, though, it's hard to say how feasible that is.

In other words, I think this is a case where the details are important.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fuglede
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