@@ -17076,18 +17076,17 @@ def error_inputs_mean(op_info, device, **kwargs):
1707617076 nan_policy='propagate',
1707717077 supports_forward_ad=True,
1707817078 supports_fwgrad_bwgrad=True,
17079+ # FIXME: mean needs 'dim' parameter when using the 'out' overload.
17080+ # Adding it with 'generate_args_kwargs' does not work, since these also get passed
17081+ # onto the reference implementations.
17082+ supports_out=False,
1707917083 assert_autodiffed=True,
1708017084 assert_jit_shape_analysis=True,
1708117085 promotes_int_to_float=True,
1708217086 dtypes=floating_and_complex_types_and(torch.float16, torch.bfloat16),
1708317087 ref=reference_reduction_numpy(np.mean),
1708417088 error_inputs_func=error_inputs_mean,
1708517089 skips=(
17086- # FIXME: mean needs 'dim' parameter when using the 'out' overload.
17087- # Adding it with 'generate_args_kwargs' does not work, since these also get passed
17088- # onto the reference implementations.
17089- DecorateInfo(unittest.skip("Skipped!"), 'TestCommon', 'test_out'),
17090- DecorateInfo(unittest.skip("Skipped!"), 'TestCommon', 'test_out_warning'),
1709117090 # FIXME: mean does not support passing keepdim without passing dim
1709217091 DecorateInfo(unittest.skip("Skipped!"), 'TestReductions', 'test_dim_default_keepdim'),
1709317092 # FIXME: mean reduces all dimensions when dim=[]
0 commit comments