Skip to content

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

@bokveizen

Description

@bokveizen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions