File tree Expand file tree Collapse file tree
transformer_engine/plugin/core/backends/vendor/hygon Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,15 +37,16 @@ def _get_sys_extension() -> str:
3737 hygon_spec = importlib .util .find_spec ("transformer_engine_hygon" )
3838 if hygon_spec is None :
3939 return False
40-
4140 if hygon_spec .origin is not None :
4241 hygon_path = Path (hygon_spec .origin ).parent
4342 elif hygon_spec .submodule_search_locations :
4443 hygon_path = Path (hygon_spec .submodule_search_locations [0 ])
4544 else :
46- print ("[ERROR _load_hygon_libs] cannot determine package path, origin is None and submodule_search_locations is empty" )
45+ print (
46+ "[ERROR _load_hygon_libs] cannot determine package path, origin is None and"
47+ " submodule_search_locations is empty"
48+ )
4749 return False
48-
4950 for file_path in hygon_path .iterdir ():
5051 if file_path .name .startswith (common_prefix ) and file_path .suffix == ext :
5152 common_files .append (file_path )
You can’t perform that action at this time.
0 commit comments