File tree Expand file tree Collapse file tree 5 files changed +10
-17
lines changed Expand file tree Collapse file tree 5 files changed +10
-17
lines changed Original file line number Diff line number Diff line change 1- -f https://download.pytorch.org/whl/torch_stable.html
21numpy
32https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp37-cp37m-linux_x86_64.whl
43sphinx
Original file line number Diff line number Diff line change 2222 f'version { major } .{ minor } .' )
2323 raise OSError (e )
2424except AttributeError as e :
25- if os .getenv ('BUILD_DOCS' , '0' ) == '1' :
26- pass
27- else :
25+ if os .getenv ('BUILD_DOCS' , '0' ) != '1' :
2826 raise AttributeError (e )
2927
30- cuda_version = torch .ops .torch_scatter .cuda_version ()
31- if cuda_version != - 1 and torch .version .cuda is not None : # pragma: no cover
32- if cuda_version < 10000 :
28+ if torch .version .cuda is not None : # pragma: no cover
29+ cuda_version = torch .ops .torch_scatter .cuda_version ()
30+
31+ if cuda_version == - 1 :
32+ major = minor = 0
33+ elif cuda_version < 10000 :
3334 major , minor = int (str (cuda_version )[0 ]), int (str (cuda_version )[2 ])
3435 else :
3536 major , minor = int (str (cuda_version )[0 :2 ]), int (str (cuda_version )[3 ])
3637 t_major , t_minor = [int (x ) for x in torch .version .cuda .split ('.' )]
37- cuda_version = str (major ) + '.' + str (minor )
3838
3939 if t_major != major or t_minor != minor :
4040 raise RuntimeError (
Original file line number Diff line number Diff line change 1111 torch .ops .load_library (importlib .machinery .PathFinder ().find_spec (
1212 '_scatter' , [osp .dirname (__file__ )]).origin )
1313except AttributeError as e :
14- if os .getenv ('BUILD_DOCS' , '0' ) == '1' :
15- pass
16- else :
14+ if os .getenv ('BUILD_DOCS' , '0' ) != '1' :
1715 raise AttributeError (e )
1816
1917
Original file line number Diff line number Diff line change 99 torch .ops .load_library (importlib .machinery .PathFinder ().find_spec (
1010 '_segment_coo' , [osp .dirname (__file__ )]).origin )
1111except AttributeError as e :
12- if os .getenv ('BUILD_DOCS' , '0' ) == '1' :
13- pass
14- else :
12+ if os .getenv ('BUILD_DOCS' , '0' ) != '1' :
1513 raise AttributeError (e )
1614
1715
Original file line number Diff line number Diff line change 99 torch .ops .load_library (importlib .machinery .PathFinder ().find_spec (
1010 '_segment_csr' , [osp .dirname (__file__ )]).origin )
1111except AttributeError as e :
12- if os .getenv ('BUILD_DOCS' , '0' ) == '1' :
13- pass
14- else :
12+ if os .getenv ('BUILD_DOCS' , '0' ) != '1' :
1513 raise AttributeError (e )
1614
1715
You can’t perform that action at this time.
0 commit comments