"torchvision/vscode:/vscode.git/clone" did not exist on "9ed2fa3c7e4ffde0dc69967d6cd91a955491dcb2"
Commit 4bd6aa8f authored by rusty1s's avatar rusty1s
Browse files

linting

parent ab28ace1
......@@ -12,7 +12,7 @@ for library in [
torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
library, [osp.dirname(__file__)]).origin)
if torch.version.cuda is not None and torch.cuda.is_available(): # pragma: no cover
if torch.cuda.is_available() and torch.version.cuda: # pragma: no cover
cuda_version = torch.ops.torch_sparse.cuda_version()
if cuda_version == -1:
......
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