File tree Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 25
25
try :
26
26
torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops" )
27
27
torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops_cpu" )
28
- except OSError :
28
+ except ( OSError , RuntimeError ) :
29
29
pass
30
30
31
31
Original file line number Diff line number Diff line change 38
38
torch .ops .load_library (
39
39
"//deeplearning/fbgemm/fbgemm_gpu:merge_pooled_embeddings_cpu"
40
40
)
41
- except OSError :
41
+ except ( OSError , RuntimeError ) :
42
42
pass
43
43
44
44
# OSS
Original file line number Diff line number Diff line change 105
105
try :
106
106
torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops" )
107
107
torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops_cpu" )
108
- except OSError :
108
+ except ( OSError , RuntimeError ) :
109
109
pass
110
110
111
111
Original file line number Diff line number Diff line change 113
113
torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops" )
114
114
torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops_cpu" )
115
115
torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu/codegen:index_select_ops" )
116
- except OSError :
116
+ except ( OSError , RuntimeError ) :
117
117
pass
118
118
119
119
Original file line number Diff line number Diff line change 58
58
try :
59
59
torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops" )
60
60
torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops_cpu" )
61
- except OSError :
61
+ except ( OSError , RuntimeError ) :
62
62
pass
63
63
64
64
Original file line number Diff line number Diff line change 100
100
try :
101
101
torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops" )
102
102
torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops_cpu" )
103
- except OSError :
103
+ except ( OSError , RuntimeError ) :
104
104
pass
105
105
106
106
Original file line number Diff line number Diff line change 79
79
try :
80
80
torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops" )
81
81
torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops_cpu" )
82
- except OSError :
82
+ except ( OSError , RuntimeError ) :
83
83
pass
84
84
85
85
# OSS
Original file line number Diff line number Diff line change 44
44
torch .ops .load_library (
45
45
"//deeplearning/fbgemm/fbgemm_gpu:permute_multi_embedding_ops_gpu"
46
46
)
47
- except OSError :
47
+ except ( OSError , RuntimeError ) :
48
48
pass
49
49
50
50
You can’t perform that action at this time.
0 commit comments