datasets freezes 
{'login': 'rabeehkarimimahabadi', 'id': 73364383, 'node_id': 'MDQ6VXNlcjczMzY0Mzgz', 'avatar_url': 'https://avatars.githubusercontent.com/u/73364383?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/rabeehkarimimahabadi', 'html_url': 'https://github.com/rabeehkarimimahabadi', 'followers_url': 'https://api.github.com/users/rabeehkarimimahabadi/followers', 'following_url': 'https://api.github.com/users/rabeehkarimimahabadi/following{/other_user}', 'gists_url': 'https://api.github.com/users/rabeehkarimimahabadi/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/rabeehkarimimahabadi/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/rabeehkarimimahabadi/subscriptions', 'organizations_url': 'https://api.github.com/users/rabeehkarimimahabadi/orgs', 'repos_url': 'https://api.github.com/users/rabeehkarimimahabadi/repos', 'events_url': 'https://api.github.com/users/rabeehkarimimahabadi/events{/privacy}', 'received_events_url': 'https://api.github.com/users/rabeehkarimimahabadi/received_events', 'type': 'User', 'site_admin': False}
[{'id': 2067388877, 'node_id': 'MDU6TGFiZWwyMDY3Mzg4ODc3', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/dataset%20bug', 'name': 'dataset bug', 'color': '2edb81', 'default': False, 'description': 'A bug in a dataset script provided in the library'}]
[]
Pytorch is unable to convert strings to tensors unfortunately.
You can use `set_format(type="torch")` on columns that can be converted to tensors, such as token ids.

This makes me think that we should probably raise an error or at least a warning when one tries to create pytorch tensors out of text columns
Hi, I want to load these two datasets and convert them to Dataset format in torch and the code freezes for me, could you have a look please? thanks 

dataset1 = load_dataset("squad", split="train[:10]")
dataset1 = dataset1.set_format(type='torch', columns=['context', 'answers', 'question'])

dataset2 = load_dataset("imdb", split="train[:10]")
dataset2 = dataset2.set_format(type="torch", columns=["text", "label"])
print(len(dataset1))

{'url': 'https://api.github.com/repos/huggingface/datasets/issues/822/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}