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

Fix numpy deprecation warning for ragged tensors #3137

Merged
merged 2 commits into from
Oct 22, 2021

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Oct 22, 2021

Numpy shows a deprecation warning when we call np.array on a list of ragged tensors without specifying the dtype. If their shapes match, the tensors can be collated together, otherwise the resulting array should have dtype=np.object.

Fix #3084
cc @Rocketknight1

@Rocketknight1
Copy link
Member

This'll be a really helpful fix, thank you!

@lhoestq lhoestq merged commit 87c71b9 into master Oct 22, 2021
@lhoestq lhoestq deleted the fix-numpy-deprecation-warning-for-ragged-tensors branch October 22, 2021 16:04
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.

VisibleDeprecationWarning when using set_format("numpy")
2 participants