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

[Torch Dialect]Support aten.cosine_similarity #2364

Merged
merged 15 commits into from
Nov 8, 2023

Conversation

JianzheXiao
Copy link
Contributor

As title, add support for aten.cosine_similarity, support broadcast inputA/inputB to the same shape

@ramiro050
Copy link
Collaborator

Any idea what is causing the numerical error in the CI?

@JianzheXiao
Copy link
Contributor Author

Any idea what is causing the numerical error in the CI?

No, really weird, only have numerical error in linalg in torch nightly version,

@ramiro050
Copy link
Collaborator

Hm. Let me take a look and see what I can find

@JianzheXiao
Copy link
Contributor Author

@ramiro050 Hi! Could you please review this pr again? Thank you!

Copy link
Collaborator

@ramiro050 ramiro050 left a comment

Choose a reason for hiding this comment

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

Thanks! Just a small formatting change needed

lib/Dialect/Torch/Transforms/DecomposeComplexOps.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@ramiro050 ramiro050 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks

@qingyunqu qingyunqu merged commit a42d4c1 into llvm:main Nov 8, 2023
5 checks passed
@JianzheXiao JianzheXiao deleted the support_cosine_similarity branch December 12, 2023 00:54
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.

3 participants