Commit 960e6614 authored by rusty1s's avatar rusty1s
Browse files

clean up

parent f981be0c
...@@ -85,6 +85,6 @@ deploy: ...@@ -85,6 +85,6 @@ deploy:
acl: public_read acl: public_read
on: on:
repo: rusty1s/pytorch_scatter repo: rusty1s/pytorch_scatter
tags: true condition: $TRAVIS_TAG != "" || $TRAVIS_COMMIT_MESSAGE =~ ci-deploy
notifications: notifications:
email: false email: false
...@@ -11,14 +11,6 @@ try: ...@@ -11,14 +11,6 @@ try:
for library in ['_version', '_scatter', '_segment_csr', '_segment_coo']: for library in ['_version', '_scatter', '_segment_csr', '_segment_coo']:
torch.ops.load_library(importlib.machinery.PathFinder().find_spec( torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
library, [osp.dirname(__file__)]).origin) library, [osp.dirname(__file__)]).origin)
except OSError as e:
major, minor = [int(x) for x in torch.__version__.split('.')[:2]]
t_major, t_minor = expected_torch_version
if major != t_major or (major == t_major and minor != t_minor):
raise RuntimeError(
f'Expected PyTorch version {t_major}.{t_minor} but found '
f'version {major}.{minor}.')
raise OSError(e)
except AttributeError as e: except AttributeError as e:
if os.getenv('BUILD_DOCS', '0') != '1': if os.getenv('BUILD_DOCS', '0') != '1':
raise AttributeError(e) 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