[tests] add a test on torch compile for varied resolutions by sayakpaul · Pull Request #11776 · huggingface/diffusers (original) (raw)
What does this PR do?
After #11360 and #11297, we can notice how torch.compile() can also benefit scenarios that go through shape changes.
This PR adds a test to catch recompilation errors on shape changes when compilation was performed with dynamic=True. I think it mimics many practical user workflows.
Requesting a review from Yiyi as you were interested in this feature.
Cc: @anijain2305 @StrongerXi for visibility.