Skip to content
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

Allow passing traced torch.nn.Modules into torch_mlir.compile #1743

Merged
merged 1 commit into from
Dec 22, 2022

Conversation

ramiro050
Copy link
Collaborator

This commit adds support for passing to torch_mlir.compile the result of running torch.jit.trace on a model by relaxing the condition that checks if the model is already in JIT IR to allow any torch.jit.ScriptModule.

Fixes #1739

This commit adds support for passing to `torch_mlir.compile` the
result of running `torch.jit.trace` on a model by relaxing the
condition that checks if the model is already in JIT IR to allow any
`torch.jit.ScriptModule`.

Fixes llvm#1739
Copy link
Collaborator

@vivekkhandelwal1 vivekkhandelwal1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ramiro050 ramiro050 merged commit 3260a1e into llvm:main Dec 22, 2022
@ramiro050 ramiro050 deleted the already-traced branch December 22, 2022 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AttributeError: 'torch._C.ScriptMethod' object has no attribute '__func__'
2 participants