-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Relax][PyTorch] Add torch.outer Op Support for Exported Program and FX graph #17930
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
Conversation
Hzfengsy
left a comment
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.
Overall LGTM
| R.output(gv) | ||
| return gv | ||
|
|
||
| input_infos = [ |
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.
Better to update the format :)
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.
@Hzfengsy Lint CI check failed when this format was not followed
| input_infos = [ | ||
| ( | ||
| [ | ||
| 3, | ||
| ], | ||
| "float32", | ||
| ), | ||
| ( | ||
| [ | ||
| 4, | ||
| ], | ||
| "float32", | ||
| ), | ||
| ] |
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.
| input_infos = [ | |
| ( | |
| [ | |
| 3, | |
| ], | |
| "float32", | |
| ), | |
| ( | |
| [ | |
| 4, | |
| ], | |
| "float32", | |
| ), | |
| ] | |
| input_infos = [([3], "float32"), ([4], "float32")] | |
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.
Try this one :)
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.
@Hzfengsy Thanks! I've updated the format, and the lint check has passed successfully :)
…FX graph (apache#17930) * add torch.outer op support into exported program and fx translator * fix lint issues * fix cpp lints * update the format of input info n fx test script --------- Co-authored-by: deivanayakisankaralingam <deiva@Deivanayaki>
This PR adds support for the torch.outer operation in exported program and fx graph translator torch frontend. By adding this support, the Sentence similarity nomic-ai/nomic-embed-text-v1.5 model is now able to run successfully: