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 2525try :
2626 torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops" )
2727 torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops_cpu" )
28- except OSError :
28+ except ( OSError , RuntimeError ) :
2929 pass
3030
3131
Original file line number Diff line number Diff line change 3838 torch .ops .load_library (
3939 "//deeplearning/fbgemm/fbgemm_gpu:merge_pooled_embeddings_cpu"
4040 )
41- except OSError :
41+ except ( OSError , RuntimeError ) :
4242 pass
4343
4444# OSS
Original file line number Diff line number Diff line change 105105try :
106106 torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops" )
107107 torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops_cpu" )
108- except OSError :
108+ except ( OSError , RuntimeError ) :
109109 pass
110110
111111
Original file line number Diff line number Diff line change 113113 torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops" )
114114 torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops_cpu" )
115115 torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu/codegen:index_select_ops" )
116- except OSError :
116+ except ( OSError , RuntimeError ) :
117117 pass
118118
119119
Original file line number Diff line number Diff line change 5858try :
5959 torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops" )
6060 torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops_cpu" )
61- except OSError :
61+ except ( OSError , RuntimeError ) :
6262 pass
6363
6464
Original file line number Diff line number Diff line change 100100try :
101101 torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops" )
102102 torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops_cpu" )
103- except OSError :
103+ except ( OSError , RuntimeError ) :
104104 pass
105105
106106
Original file line number Diff line number Diff line change 7979try :
8080 torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops" )
8181 torch .ops .load_library ("//deeplearning/fbgemm/fbgemm_gpu:sparse_ops_cpu" )
82- except OSError :
82+ except ( OSError , RuntimeError ) :
8383 pass
8484
8585# OSS
Original file line number Diff line number Diff line change 4444 torch .ops .load_library (
4545 "//deeplearning/fbgemm/fbgemm_gpu:permute_multi_embedding_ops_gpu"
4646 )
47- except OSError :
47+ except ( OSError , RuntimeError ) :
4848 pass
4949
5050
You can’t perform that action at this time.
0 commit comments