phaseaug icon indicating copy to clipboard operation
phaseaug copied to clipboard

Pytorch 2 cannot compile forward_sync

Open yzmyyff opened this issue 2 years ago • 2 comments

Hi guys,

Thanks for your work on this project.

I used phaseaug in my vocoder which worked well.

but when I compile the whole model in pytorch 2 and get something wrong.

I minify the codes:

phaseaug = PhaseAug()
compiled_phaseaug = torch.compile(phaseaug.forward_sync)
wav = torch.randn([32, 1, 9600])
compiled_phaseaug(wav, wav)

Do you have any ideas about that?

yzmyyff avatar May 09 '23 03:05 yzmyyff

Sorry, I just tested it on a higher version of torch, without compiling.

I will try it in a month.

junjun3518 avatar May 26 '23 07:05 junjun3518

@yzmyyff Hi again! I just find this issue that pytorch cannot compile complex valued function. And it seems that pytorch and triton teams do not have time to consider complex in/output. Thus, for now, you should use phaseaug without compile. Thank you for noticing

junjun3518 avatar Jun 23 '23 23:06 junjun3518