Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

Conversation

@OlegPonomaryov
Copy link
Contributor

@OlegPonomaryov OlegPonomaryov commented May 23, 2021

The docstring for trax.data.batch() states that it performs both padding and batching, but currently it doesn't support padding and throws an exception when samples in a batch have different shape. This small code update should fix the problem, also added a test to verify padding support and correctness.

@google-cla google-cla bot added the cla: yes label May 23, 2021
@afrozenator afrozenator added the ready to pull Added when the PR is ready to be merged. label Aug 4, 2021
@copybara-service copybara-service bot merged commit 96cb76c into google:master Oct 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes ready to pull Added when the PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants