Skip to content
Discussion options

You must be logged in to vote

The reason that other batch rules in the file look like the one you created is that those primitives are closed under batching: that is, the primitive itself can handle batched inputs, so in order to compute the batched results, you must simply ensure the inputs are laid out in the expected way and then call the original primitive. tridiagonal_solve, on the other hand, is not closed under batching: that is, you cannot use the primitive directly to compute batched results, so the batch rule is going to have to do something other than call back into the primitive.

Long term, the best way to support batched tridiagonal solves would be to make the primitive closed under batching. This would i…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@packquickly
Comment options

@YouJiacheng
Comment options

@packquickly
Comment options

@YouJiacheng
Comment options

@packquickly
Comment options

Comment options

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