Last active
May 14, 2025 07:23
-
-
Save m1ser4ble/bd31f4e1beac1375ddb3b1d09fabe089 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
saved_exported_program = torch.export.load('exported.pt2') | |
x=torch.ones(2,2).cuda() | |
y=torch.zeros(2,2).cuda() | |
mod = saved_exported_program.module()) | |
res=torch.compile(mod)(x,y) | |
print(res[0].device) | |
print(res[0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment