Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pytorch 2 cannot compile forward_sync #12

Open
yzmyyff opened this issue May 9, 2023 · 2 comments
Open

Pytorch 2 cannot compile forward_sync #12

yzmyyff opened this issue May 9, 2023 · 2 comments

Comments

@yzmyyff
Copy link

yzmyyff commented May 9, 2023

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?

@junjun3518
Copy link
Contributor

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

I will try it in a month.

@junjun3518
Copy link
Contributor

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants