"tests/vscode:/vscode.git/clone" did not exist on "244e16a7abfabce9e606b950af349062df40e437"
Commit 8ca6d861 authored by rusty1s's avatar rusty1s
Browse files

doc fix

parent 9c1f4015
-f https://download.pytorch.org/whl/torch_stable.html
numpy
https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp37-cp37m-linux_x86_64.whl
sphinx
......
......@@ -22,19 +22,19 @@ except OSError as e:
f'version {major}.{minor}.')
raise OSError(e)
except AttributeError as e:
if os.getenv('BUILD_DOCS', '0') == '1':
pass
else:
if os.getenv('BUILD_DOCS', '0') != '1':
raise AttributeError(e)
cuda_version = torch.ops.torch_scatter.cuda_version()
if cuda_version != -1 and torch.version.cuda is not None: # pragma: no cover
if cuda_version < 10000:
if torch.version.cuda is not None: # pragma: no cover
cuda_version = torch.ops.torch_scatter.cuda_version()
if cuda_version == -1:
major = minor = 0
elif cuda_version < 10000:
major, minor = int(str(cuda_version)[0]), int(str(cuda_version)[2])
else:
major, minor = int(str(cuda_version)[0:2]), int(str(cuda_version)[3])
t_major, t_minor = [int(x) for x in torch.version.cuda.split('.')]
cuda_version = str(major) + '.' + str(minor)
if t_major != major or t_minor != minor:
raise RuntimeError(
......
......@@ -11,9 +11,7 @@ try:
torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
'_scatter', [osp.dirname(__file__)]).origin)
except AttributeError as e:
if os.getenv('BUILD_DOCS', '0') == '1':
pass
else:
if os.getenv('BUILD_DOCS', '0') != '1':
raise AttributeError(e)
......
......@@ -9,9 +9,7 @@ try:
torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
'_segment_coo', [osp.dirname(__file__)]).origin)
except AttributeError as e:
if os.getenv('BUILD_DOCS', '0') == '1':
pass
else:
if os.getenv('BUILD_DOCS', '0') != '1':
raise AttributeError(e)
......
......@@ -9,9 +9,7 @@ try:
torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
'_segment_csr', [osp.dirname(__file__)]).origin)
except AttributeError as e:
if os.getenv('BUILD_DOCS', '0') == '1':
pass
else:
if os.getenv('BUILD_DOCS', '0') != '1':
raise AttributeError(e)
......
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