Commit df4cde6e authored by rusty1s's avatar rusty1s
Browse files

fix build docs

parent dfa5e1d4
-f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
numpy
torch_nightly
sphinx sphinx
sphinx_rtd_theme sphinx_rtd_theme
sphinx-autodoc-typehints sphinx-autodoc-typehints
...@@ -19,6 +19,9 @@ except OSError as e: ...@@ -19,6 +19,9 @@ except OSError as e:
raise RuntimeError( raise RuntimeError(
f'Expected PyTorch version {t_major}.{t_minor} but found ' f'Expected PyTorch version {t_major}.{t_minor} but found '
f'version {major}.{minor}.') f'version {major}.{minor}.')
if os.getenv('BUILD_DOCS', '0') == '1':
pass
else:
raise OSError(e) raise OSError(e)
from .scatter import (scatter_sum, scatter_add, scatter_mean, scatter_min, from .scatter import (scatter_sum, scatter_add, scatter_mean, scatter_min,
......
import os
import importlib import importlib
import os.path as osp import os.path as osp
from typing import Optional, Tuple from typing import Optional, Tuple
...@@ -6,8 +7,14 @@ import torch ...@@ -6,8 +7,14 @@ import torch
from .utils import broadcast from .utils import broadcast
torch.ops.load_library(importlib.machinery.PathFinder().find_spec( try:
torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
'_scatter', [osp.dirname(__file__)]).origin) '_scatter', [osp.dirname(__file__)]).origin)
except OSError as e:
if os.getenv('BUILD_DOCS', '0') == '1':
pass
else:
raise OSError(e)
@torch.jit.script @torch.jit.script
......
import os
import importlib import importlib
import os.path as osp import os.path as osp
from typing import Optional, Tuple from typing import Optional, Tuple
import torch import torch
torch.ops.load_library(importlib.machinery.PathFinder().find_spec( try:
torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
'_segment_coo', [osp.dirname(__file__)]).origin) '_segment_coo', [osp.dirname(__file__)]).origin)
except OSError as e:
if os.getenv('BUILD_DOCS', '0') == '1':
pass
else:
raise OSError(e)
@torch.jit.script @torch.jit.script
......
import os
import importlib import importlib
import os.path as osp import os.path as osp
from typing import Optional, Tuple from typing import Optional, Tuple
import torch import torch
torch.ops.load_library(importlib.machinery.PathFinder().find_spec( try:
torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
'_segment_csr', [osp.dirname(__file__)]).origin) '_segment_csr', [osp.dirname(__file__)]).origin)
except OSError as e:
if os.getenv('BUILD_DOCS', '0') == '1':
pass
else:
raise OSError(e)
@torch.jit.script @torch.jit.script
......
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