Skip to content

Conversation

james77777778
Copy link

@james77777778 james77777778 commented Aug 17, 2025

Related to #935

This PR adds batch_fn to grain.load, grain.transforms.Batch, and grain._src.python.operations.BatchOperation which enables users to use batch_fn with grain.DataLoader.

I did not run the added tests with the Grain test suite because I'm not familiar with Bazel and absl.testing. I only verified the logic using a custom script.

Please guide me on how to run the tests if needed. Thanks.


📚 Documentation preview 📚: https://google-grain--991.org.readthedocs.build/

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.

1 participant