other ¶
Functions:
-
get_nvidia_version
–Check if nvidia drivers are installed and if available return the version.
-
is_gpu_available
–Check if any GPU is available.
Attributes:
-
IS_DOCS
–Whether the script is currently running in sphinx docs.
IS_DOCS module-attribute
¶
IS_DOCS = (
not TYPE_CHECKING
and "sphinx" in modules
or basename(argv[0]) in ["sphinx-build", "sphinx-build.exe"]
or hasattr(builtins, "__sphinx_build__")
and __sphinx_build__
)
Whether the script is currently running in sphinx docs.
get_nvidia_version ¶
Check if nvidia drivers are installed and if available return the version.
Source code
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
is_gpu_available ¶
is_gpu_available() -> bool
Check if any GPU is available.
Source code
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|