Skip to content
Discussion options

You must be logged in to vote

fori_loop will trace the loop body with tracer, thus single_iter will be called with all tracer argument.
Moreover, fori_loop cannot change the shape of val.
You should use python for loop in such case.

Replies: 1 comment

Comment options

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