File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1111 torch .ops .load_library (importlib .machinery .PathFinder ().find_spec (
1212 library , [osp .dirname (__file__ )]).origin )
1313except OSError as e :
14- if 'undefined symbol' in str (e ):
15- major , minor = [int (x ) for x in torch .__version__ .split ('.' )[:2 ]]
16- t_major , t_minor = expected_torch_version
17- if major != t_major or (major == t_major and minor != t_minor ):
18- raise RuntimeError (
19- f'Expected PyTorch version { t_major } .{ t_minor } but found '
20- f'version { major } .{ minor } .' )
14+ major , minor = [int (x ) for x in torch .__version__ .split ('.' )[:2 ]]
15+ t_major , t_minor = expected_torch_version
16+ if major != t_major or (major == t_major and minor != t_minor ):
17+ raise RuntimeError (
18+ f'Expected PyTorch version { t_major } .{ t_minor } but found '
19+ f'version { major } .{ minor } .' )
2120 raise OSError (e )
2221
2322if torch .version .cuda is not None : # pragma: no cover
You can’t perform that action at this time.
0 commit comments