Commit 392481f0 authored by atalman's avatar atalman Committed by Facebook GitHub Bot
Browse files

Return version from cuda version check (#2919)

Summary:
Return version from cuda version check so that we can display it in the test details

Pull Request resolved: https://github.com/pytorch/audio/pull/2919

Reviewed By: mthrok

Differential Revision: D42001252

Pulled By: atalman

fbshipit-source-id: 0d8fc3812a13fe098cdf8e0f3df7b66161ba3f95
parent ad596b37
...@@ -130,6 +130,7 @@ def _check_cuda_version(): ...@@ -130,6 +130,7 @@ def _check_cuda_version():
f"PyTorch has CUDA version {t_version} whereas TorchAudio has CUDA version {ta_version}. " f"PyTorch has CUDA version {t_version} whereas TorchAudio has CUDA version {ta_version}. "
"Please install the TorchAudio version that matches your PyTorch version." "Please install the TorchAudio version that matches your PyTorch version."
) )
return version
_init_extension() _init_extension()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment