Fix numpy deprecation warning for ragged tensors
MEMBER
This'll be a really helpful fix, thank you!
2021-10-22T11:25:20Z
https://github.com/huggingface/datasets/pull/3137#issuecomment-949540595
https://api.github.com/repos/huggingface/datasets/issues/3137
IC_kwDODunzps44mNbz
https://api.github.com/repos/huggingface/datasets/issues/comments/949540595/reactions
2021-10-22T11:25:20Z
https://api.github.com/repos/huggingface/datasets/issues/comments/949540595
https://avatars.githubusercontent.com/u/12866554?v=4
https://api.github.com/users/Rocketknight1/events{/privacy}
https://api.github.com/users/Rocketknight1/followers
https://api.github.com/users/Rocketknight1/following{/other_user}
https://api.github.com/users/Rocketknight1/gists{/gist_id}
https://github.com/Rocketknight1
Rocketknight1
MDQ6VXNlcjEyODY2NTU0
https://api.github.com/users/Rocketknight1/orgs
https://api.github.com/users/Rocketknight1/received_events
https://api.github.com/users/Rocketknight1/repos
https://api.github.com/users/Rocketknight1/starred{/owner}{/repo}
https://api.github.com/users/Rocketknight1/subscriptions
User
https://api.github.com/users/Rocketknight1
public
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 