@@ -29,40 +29,48 @@ def torch_ge(v):
2929
3030_FULL_CONFIG = (
3131 ("_assert_async" , _assert_async ),
32- ("_flash_attention_forward" , flash_attention_forward ),
32+ ("_flash_attention_forward" , _flash_attention_forward ),
3333 (
3434 "_functional_sym_constrain_range_for_size" ,
3535 _functional_sym_constrain_range_for_size ,
3636 ),
37- ("_grouped_mm" , group_mm ),
38- ("_log_softmax" , log_softmax ),
39- ("_log_softmax_backward_data" , log_softmax_backward ),
37+ ("_grouped_mm" , _grouped_mm ),
38+ ("_log_softmax" , _log_softmax ),
39+ ("_log_softmax.out" , _log_softmax_out ),
40+ ("_log_softmax_backward_data" , _log_softmax_backward_data ),
41+ ("_log_softmax_backward_data.out" , _log_softmax_backward_data_out ),
4042 ("_safe_softmax" , _safe_softmax ),
41- ("_softmax" , softmax ),
42- ("_softmax_backward_data" , softmax_backward ),
43+ ("_softmax" , _softmax ),
44+ ("_softmax.out" , _softmax_out ),
45+ ("_softmax_backward_data" , _softmax_backward_data ),
46+ ("_softmax_backward_data.out" , _softmax_backward_data_out ),
4347 (
4448 "_to_copy" ,
45- to_copy ,
49+ _to_copy ,
4650 lambda : version .parse (torch .__version__ ) >= version .parse ("2.4" ),
4751 ),
4852 ("_unique2" , _unique2 ),
4953 ("_upsample_bicubic2d_aa" , _upsample_bicubic2d_aa ),
5054 ("_upsample_bicubic2d_aa_backward" , _upsample_bicubic2d_aa_backward ),
5155 ("_upsample_nearest_exact1d" , _upsample_nearest_exact1d ),
52- ("_weight_norm_interface" , weight_norm_interface ),
53- ("_weight_norm_interface_backward" , weight_norm_interface_backward ),
56+ ("_weight_norm_interface" , _weight_norm_interface ),
57+ ("_weight_norm_interface_backward" , _weight_norm_interface_backward ),
5458 ("abs" , abs ),
5559 ("abs_" , abs_ ),
5660 ("absolute" , absolute ),
5761 ("acos" , acos ),
5862 ("add.Tensor" , add ),
5963 ("add_.Tensor" , add_ ),
6064 ("addcdiv" , addcdiv ),
65+ ("addcdiv.out" , addcdiv_out ),
6166 ("addcmul" , addcmul ),
67+ ("addcmul.out" , addcmul_out ),
6268 ("addmv" , addmv ),
6369 ("addmv.out" , addmv_out ),
6470 ("addmm" , addmm ),
6571 ("addmm.out" , addmm_out ),
72+ ("addmm.dtype" , addmm_dtype ),
73+ ("addmm.dtype_out" , addmm_dtype_out ),
6674 ("addr" , addr ),
6775 ("alias_copy" , alias_copy ),
6876 ("all" , all ),
@@ -92,6 +100,7 @@ def torch_ge(v):
92100 ("avg_pool2d" , avg_pool2d ),
93101 ("avg_pool2d_backward" , avg_pool2d_backward ),
94102 ("baddbmm" , baddbmm ),
103+ ("baddbmm.out" , baddbmm_out ),
95104 ("bincount" , bincount ),
96105 ("bitwise_and.Scalar" , bitwise_and_scalar ),
97106 ("bitwise_and.Scalar_Tensor" , bitwise_and_scalar_tensor ),
@@ -110,6 +119,7 @@ def torch_ge(v):
110119 ("bmm" , bmm ),
111120 ("bmm.out" , bmm_out ),
112121 ("cat" , cat ),
122+ ("cat.out" , cat_out ),
113123 ("celu" , celu ),
114124 ("celu_" , celu_ ),
115125 ("ceil" , ceil ),
@@ -364,8 +374,8 @@ def torch_ge(v):
364374 ("resolve_neg" , resolve_neg ),
365375 ("rms_norm" , rms_norm ),
366376 ("round" , round ),
367- ("round.out" , round_out ),
368377 ("round_" , round_ ),
378+ ("round.out" , round_out ),
369379 ("rrelu_with_noise_backward" , rrelu_with_noise_backward ),
370380 ("rsqrt" , rsqrt ),
371381 ("rsqrt_" , rsqrt_ ),
@@ -463,6 +473,21 @@ def torch_ge(v):
463473 func_name = fn .__name__ if hasattr (fn , "__name__" ) else str (fn )
464474 FULL_CONFIG_BY_FUNC .setdefault (func_name , []).append (_item )
465475
476+ # Friendly names for only_enable(include=[...]) when the registered impl is *.out
477+ for _alias , _target in (
478+ ("softmax" , "_softmax_out" ),
479+ ("softmax_backward" , "_softmax_backward_data_out" ),
480+ ("log_softmax" , "_log_softmax_out" ),
481+ ("log_softmax_backward" , "_log_softmax_backward_data_out" ),
482+ ("flash_attention_forward" , "_flash_attention_forward" ),
483+ ("group_mm" , "_grouped_mm" ),
484+ ("to_copy" , "_to_copy" ),
485+ ("weight_norm_interface" , "_weight_norm_interface" ),
486+ ("weight_norm_interface_backward" , "_weight_norm_interface_backward" ),
487+ ):
488+ if _target in FULL_CONFIG_BY_FUNC :
489+ FULL_CONFIG_BY_FUNC .setdefault (_alias , []).extend (FULL_CONFIG_BY_FUNC [_target ])
490+
466491
467492def enable (
468493 lib = aten_lib ,
0 commit comments