-
Notifications
You must be signed in to change notification settings - Fork 87
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
prims.div - Fails with torch_compile executor and incorrect torchex implementation #1695
Comments
Also, there seems to be a bug in lightning-thunder/thunder/executors/torchex.py Lines 930 to 931 in 52ee541
Also, there is a bug with handling of import torch
import thunder
from thunder.executors.torchex import ex as torchex
def fn(x, y):
return thunder.prims.div(x, y) + x
jfn = thunder.jit(fn, executors=[torchex,])
jfn(1., torch.ones(3, 3)) Error
|
Good catch on the torch executor's error in Separately, I'm not sure if the torch compile executor supports calling the primitive directly like this. We should detect and prevent the torch compile executor from executing the prims.div call. |
It does work on other primitives like Currently torch_compile supports every symbol supported by lightning-thunder/thunder/executors/torch_compile.py Lines 247 to 249 in 52ee541
|
Good point; PR approved. |
Error
Found while running
The text was updated successfully, but these errors were encountered: