Test that TensorFlow is not imported on startup
NONE
_The documentation is not available anymore as the PR was closed or merged._
2022-06-13T10:40:18Z
https://github.com/huggingface/datasets/pull/4482#issuecomment-1153757368
https://api.github.com/repos/huggingface/datasets/issues/4482
IC_kwDODunzps5ExPC4
https://api.github.com/repos/huggingface/datasets/issues/comments/1153757368/reactions
2023-10-11T09:12:27Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1153757368
https://avatars.githubusercontent.com/u/99929124?v=4
https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}
https://api.github.com/users/HuggingFaceDocBuilderDev/followers
https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}
https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}
https://github.com/HuggingFaceDocBuilderDev
HuggingFaceDocBuilderDev
U_kgDOBfTMJA
https://api.github.com/users/HuggingFaceDocBuilderDev/orgs
https://api.github.com/users/HuggingFaceDocBuilderDev/received_events
https://api.github.com/users/HuggingFaceDocBuilderDev/repos
https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}
https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions
User
https://api.github.com/users/HuggingFaceDocBuilderDev
public
MEMBER
Should we close this PR?
2023-09-24T10:11:15Z
https://github.com/huggingface/datasets/pull/4482#issuecomment-1732537371
https://api.github.com/repos/huggingface/datasets/issues/4482
IC_kwDODunzps5nRGwb
https://api.github.com/repos/huggingface/datasets/issues/comments/1732537371/reactions
2023-09-24T10:11:15Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1732537371
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
MEMBER
I'm closing this PR. Feel free to reopen it if necessary.
2023-10-11T09:11:56Z
https://github.com/huggingface/datasets/pull/4482#issuecomment-1757222735
https://api.github.com/repos/huggingface/datasets/issues/4482
IC_kwDODunzps5ovRdP
https://api.github.com/repos/huggingface/datasets/issues/comments/1757222735/reactions
2023-10-11T09:11:56Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1757222735
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
TF takes some time to be imported, and also uses some GPU memory.

I just added a test to make sure that in the future it's never imported by default when
```python
import datasets
```
is called.

Right now this fails because `huggingface_hub` does import tensorflow (though this is fixed now on their `main` branch)

I'll mark this PR as ready for review once `huggingface_hub` has a new release