Created
February 13, 2024 02:35
-
-
Save xmfan/c8fe3b2c3e2dddae25883b74c402d44d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
def fn2(): | |
x = torch.randn(2, 2, device="cuda") | |
y = 5 | |
return x / y | |
torch.compile(fn2, mode="reduce-overhead")() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment