yangsp5

Results 2 comments of yangsp5

the code: ```{python} import faiss import numpy as np dim = 768 num_threads = 10 use_gpu = True faiss.omp_set_num_threads(num_threads) index = faiss.IndexFlatIP(dim) index = faiss.IndexIDMap(index) if use_gpu: index = faiss.index_cpu_to_all_gpus(index)...