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 1212 torch .ops .load_library (importlib .machinery .PathFinder ().find_spec (
1313 library , [osp .dirname (__file__ )]).origin )
1414except OSError as e :
15- if 'undefined symbol' in str (e ):
16- major , minor = [int (x ) for x in torch .__version__ .split ('.' )[:2 ]]
17- t_major , t_minor = expected_torch_version
18- if major != t_major or (major == t_major and minor != t_minor ):
19- raise RuntimeError (
20- f'Expected PyTorch version { t_major } .{ t_minor } but found '
21- f'version { major } .{ minor } .' )
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 } .' )
2221 raise OSError (e )
2322except AttributeError as e :
2423 if os .getenv ('BUILD_DOCS' , '0' ) != '1' :
You can’t perform that action at this time.
0 commit comments