Skip to content

Conversation

@copybara-service
Copy link

Fix handling of pytrees within jnp.array and jnp.asarray.

Previously, the logic meant for probing nested lists and tuples would traverse into the leaves of custom pytrees; this was unintentional. This change should make the handling of pytrees within jnp.array much more predictable.

Addresses #32725

@copybara-service copybara-service bot force-pushed the test_826571655 branch 4 times, most recently from 534bc68 to fffed9a Compare November 3, 2025 20:03
Previously, the logic meant for probing nested lists and tuples would traverse into the leaves of custom pytrees; this was unintentional. This change should make the handling of pytrees within `jnp.array` much more predictable.

Addresses #32725

PiperOrigin-RevId: 826571655
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