not round-trip properly because the input is odd-length:



torch.fft.irfft(T)
   tensor([0.1562, 0.3511, 0.7812, 1.2114])



So, it is recommended to always pass the signal length "n":



roundtrip = torch.fft.irfft(T, t.numel())
torch.testing.assert_close(roundtrip, t, check_stride=False)


