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

Expose some is_*_available utils in docs #466

Merged
merged 1 commit into from
Jun 23, 2022
Merged

Expose some is_*_available utils in docs #466

merged 1 commit into from
Jun 23, 2022

Conversation

muellerzr
Copy link
Collaborator

This PR adds the following to the documentation:

  • is_bf16_available
  • is_torch_version
  • is_tpu_available

My motivation for this is while they're mildly small utility functions, they have more usecases than just being used internally. Especially the is_bf16_available, as pytorch's own check isn't shown in their general documentation so many people did not even know it existed!

I'm 50/50 on if we want to show is_torch_version, but bare minimum is_tpu_available and is_bf16_available are a must IMO as they have different underlying checks than just "is this package installed"

@muellerzr muellerzr added the documentation Improvements or additions to documentation label Jun 23, 2022
@muellerzr muellerzr requested a review from sgugger June 23, 2022 14:15
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Jun 23, 2022

The documentation is not available anymore as the PR was closed or merged.

@muellerzr muellerzr merged commit 24be733 into main Jun 23, 2022
@muellerzr muellerzr deleted the docs branch June 23, 2022 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants