[Break XPU] Align meta calculation for fft_r2c with _fft_r2c_mkl

Fix #146761

[ghstack-poisoned]
This commit is contained in:
xinan.lin 2025-02-08 08:20:36 -08:00
parent 926b4c4e5e
commit b0ce6ee974

View file

@ -370,9 +370,11 @@ def meta_fft_r2c(self, dim, normalization, onesided):
return output
else:
return self.new_empty(
sorted_dims = _sort_dims(self, dim, exclude_last=True)
out = self.new_empty(
out_sizes, dtype=utils.corresponding_complex_dtype(self.dtype)
)
return _exec_fft(out, self, out_sizes, sorted_dims, forward=True)
@register_meta(aten.randperm.generator_out)