File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed
fbgemm_gpu/fbgemm_gpu/utils Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change 14
14
15
15
16
16
def load_torch_module (
17
- unified_path : str ,
18
- cuda_path : Optional [str ] = None ,
19
- hip_path : Optional [str ] = None ,
20
- mtia_path : Optional [str ] = None ,
17
+ unified_path : str , cuda_path : Optional [str ] = None , hip_path : Optional [str ] = None
21
18
) -> None :
22
19
try :
23
20
torch .ops .load_library (unified_path )
@@ -27,16 +24,9 @@ def load_torch_module(
27
24
hip_path = f"{ unified_path } _hip"
28
25
torch .ops .load_library (hip_path )
29
26
else :
30
- try :
31
- # pyre-ignore-next-line[21]
32
- import mtia .host_runtime .torch_mtia .dynamic_library # noqa
33
-
34
- if mtia_path is not None :
35
- torch .ops .load_library (mtia_path )
36
- except OSError :
37
- if not cuda_path :
38
- cuda_path = f"{ unified_path } _cuda"
39
- torch .ops .load_library (cuda_path )
27
+ if not cuda_path :
28
+ cuda_path = f"{ unified_path } _cuda"
29
+ torch .ops .load_library (cuda_path )
40
30
41
31
42
32
def load_torch_module_bc (new_path : str , old_path : str ) -> None :
You can’t perform that action at this time.
0 commit comments