Created
November 30, 2021 10:39
-
-
Save hsleonis/a6614288e29404fd9d0b8ed9deec3e9e to your computer and use it in GitHub Desktop.
Get CUDA Version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
from tensorflow.python.platform import build_info as build | |
print(f"tensorflow version: {tf.__version__}") | |
print(f"Cuda Version: {build.build_info['cuda_version']}") | |
print(f"Cudnn version: {build.build_info['cudnn_version']}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment