We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import torch import thunder def f(*args): a, b = args c = a + b return c def ff(*args): return thunder.core.transforms.value_and_grad(f)(*args) a = torch.ones(3) b = torch.ones(3) cff = thunder.jit(ff) print(cff(a, b)) # Returns (tensor([2., 2., 2.]), (None, None))
There should be ones instead of Nones.
It's probably happening because "unpacking" operations are ignored in
lightning-thunder/thunder/core/transforms.py
Line 2638 in f7b2e15
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🐛 Bug
There should be ones instead of Nones.
It's probably happening because "unpacking" operations are ignored in
lightning-thunder/thunder/core/transforms.py
Line 2638 in f7b2e15
The text was updated successfully, but these errors were encountered: