Skip to content

[Python][ML] Add JAX output format to RDataLoader#22550

Open
siliataider wants to merge 3 commits into
root-project:masterfrom
siliataider:rdataloader
Open

[Python][ML] Add JAX output format to RDataLoader#22550
siliataider wants to merge 3 commits into
root-project:masterfrom
siliataider:rdataloader

Conversation

@siliataider

@siliataider siliataider commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

This Pull request:

Add as_jax() as an extra output format to RDataLoader batches to support users with JAX-based training pipelines.

Batches are retuned as jax.Array objects.

Also has an optional device parameter (mirroring the PyTorch implementation #22013).

Needs #22551 for the tests

@siliataider siliataider self-assigned this Jun 9, 2026
@siliataider siliataider added in:ML Everything under ROOT/ML in:Python Interface labels Jun 9, 2026
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 14h 26m 54s ⏱️
 3 864 tests  3 863 ✅ 0 💤 1 ❌
76 324 runs  76 323 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit 781a644.

♻️ This comment has been updated with latest results.

@vepadulano vepadulano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for this prompt action following some user feedback! The changes LGTM, I left a couple of minor suggestions. Let's wait for the CI to be ready before merging anyway.

Comment thread bindings/pyroot/pythonizations/python/ROOT/_pythonization/_ml_dataloader.py Outdated
Comment thread bindings/pyroot/pythonizations/test/ml_dataloader.py Outdated
@siliataider

Copy link
Copy Markdown
Contributor Author

Thanks! Yes, needs #22551

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

Labels

in:ML Everything under ROOT/ML in:Python Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants