faiss/gpu/impl/L2Select.cuh

23 lines
603 B
Plaintext
Raw Normal View History

2017-02-22 23:26:44 +01:00
/**
* Copyright (c) Facebook, Inc. and its affiliates.
2017-02-22 23:26:44 +01:00
*
* This source code is licensed under the MIT license found in the
2017-02-22 23:26:44 +01:00
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <faiss/gpu/utils/Tensor.cuh>
2017-02-22 23:26:44 +01:00
namespace faiss { namespace gpu {
void runL2SelectMin(Tensor<float, 2, true>& productDistances,
Tensor<float, 1, true>& centroidDistances,
Tensor<float, 2, true>& outDistances,
Tensor<int, 2, true>& outIndices,
int k,
cudaStream_t stream);
} } // namespace