mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
[Break XPU] Align meta calculation for fft_r2c with _fft_r2c_mkl
Fix #146761 [ghstack-poisoned]
This commit is contained in:
parent
926b4c4e5e
commit
b0ce6ee974
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue