Skip to content

Add Transpose#73

Open
gvcallen wants to merge 1 commit into
lockwo:mainfrom
gvcallen:transpose
Open

Add Transpose#73
gvcallen wants to merge 1 commit into
lockwo:mainfrom
gvcallen:transpose

Conversation

@gvcallen

@gvcallen gvcallen commented Apr 5, 2026

Copy link
Copy Markdown
Contributor

Add's the Transpose bijector similar to tbp.bijectors.Transpose.

Transpose permutes array axes, analogous to TensorFlow Probability's
Transpose bijector.
Comment thread tests/conftest.py

# 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)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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."""

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants