Add Transpose#73
Open
gvcallen wants to merge 1 commit into
Open
Conversation
Transpose permutes array axes, analogous to TensorFlow Probability's Transpose bijector.
lockwo
reviewed
Jul 10, 2026
|
|
||
| # Must be set before any JAX arrays are initialized. Living here (rather than in | ||
| # individual test files) guarantees it runs before any test module import. | ||
| jax.config.update("jax_enable_x64", True) |
Owner
There was a problem hiding this comment.
I will probably introduce rigorous x64 tests in another PR, but for transpose doesn't depend on it to lets save it for another
| AbstractInvLogDetJacBijector, | ||
| AbstractFwdLogDetJacBijector, | ||
| ): | ||
| """A bijector that transposes the dimensions of the input array.""" |
Owner
There was a problem hiding this comment.
This is not super clear, it would benefit from more explanation how what the transposition does, maybe a little nice docs example (e.g. more in line with TFP)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add's the Transpose bijector similar to tbp.bijectors.Transpose.