Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stack vectors in pytorch and tensorflow #495

Merged
merged 1 commit into from
Aug 12, 2020

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Aug 11, 2020

When the format of a dataset is set to pytorch or tensorflow, and if the dataset has vectors in it, they were not stacked together as tensors when calling dataset[i:i + batch_size][column] or dataset[column].

I added support for stacked tensors for both pytorch and tensorflow.
For ragged tensors, they are stacked only for tensorflow as pytorch doesn't support ragged tensors.

@lhoestq lhoestq merged commit ae3c5c1 into master Aug 12, 2020
@lhoestq lhoestq deleted the stack-vectors-in-pytorch-and-tensorflow branch August 12, 2020 09:30
vegarab pushed a commit to vegarab/nlp that referenced this pull request Aug 18, 2020
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