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

Why is Cosine distance not supported for knn on CPUs? #237

Open
bokveizen opened this issue Nov 22, 2024 · 0 comments
Open

Why is Cosine distance not supported for knn on CPUs? #237

bokveizen opened this issue Nov 22, 2024 · 0 comments

Comments

@bokveizen
Copy link

At https://github.com/rusty1s/pytorch_cluster/blob/master/csrc/knn.cpp#L34, we see that cosine distance is not supported for knn on CPUs. Are there specific reasons for this limitation? Also, are there simple workarounds if we want to use cosine distance on CPUs?

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

No branches or pull requests

1 participant