Faiss

- Main Page
- Namespaces
- Classes
- Files

- File List

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
BinaryDistance.cuh
1 /**
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8
9 #include "../utils/DeviceTensor.cuh"
10
11 namespace faiss { namespace gpu {
12
13 // Performs brute-force k-NN comparison between `vecs` and `query`, where they
14 // are encoded as binary vectors
15 void runBinaryDistance(Tensor<unsigned char, 2, true>& vecs,
16 Tensor<unsigned char, 2, true>& query,
17 Tensor<int, 2, true>& outK,
18 Tensor<int, 2, true>& outV,
19 int k, cudaStream_t stream);
20
21 } } // namespace