autofaiss icon indicating copy to clipboard operation
autofaiss copied to clipboard

Torch Tensor support?

Open khoapham2801 opened this issue 1 year ago • 1 comments

I want to ask whether doing KNN search with torch tensors is supported? Many thanks!

khoapham2801 avatar Jul 22 '22 10:07 khoapham2801

Yes if you import import faiss.contrib.torch_utils

See example of use there https://github.com/facebookresearch/faiss/blob/main/tests/torch_test_contrib.py#L36

This isn't autofaiss specific

On Fri, Jul 22, 2022, 12:24 Khoa Pham @.***> wrote:

I want to ask whether doing KNN search torch tensors is supported? Many thanks!

— Reply to this email directly, view it on GitHub https://github.com/criteo/autofaiss/issues/127, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437TKIJ7XWOQ2UZI4BJTVVJZGXANCNFSM54K4TACQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

rom1504 avatar Jul 22 '22 10:07 rom1504