-
Notifications
You must be signed in to change notification settings - Fork 84
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
feat: add fullgraph argument for torch compile #1007
feat: add fullgraph argument for torch compile #1007
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, would we want to add a test, say for llama2-like to run with this to test_networks or so?
I could, however, I don't think that will allow us to check if |
Right, I had hoped we could get it from the compiler config or so, but apparently it is
|
I think a simple way to test import torch
def foo():
print("This will lead to graph break")
torch.compile(foo, fullgraph=True)() # This will throw `torch._dynamo.exc.Unsupported` |
@kshitij12345 Hey! Thanks for the suggestion. I did try this but I don't think it'll will throw an error within
Which makes it difficult to see what parameter has been passed to |
You are right, I forgot that the Thanks for trying this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before submitting
What does this PR do?
Fixes #281. As this is a fairly old issue, I am not sure if this is needed. Also, I am not sure how to add a test case for this.
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃