Faiss

- Main Page
- Namespaces
- Classes
- Files

- File List

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
L2Norm.cuh
1 /**
2 * Copyright (c) 2015-present, Facebook, Inc.
3 * All rights reserved.
4 *
5 * This source code is licensed under the BSD+Patents license found in the
6 * LICENSE file in the root directory of this source tree.
7 */
8
9
10 #pragma once
11
12 #include "../utils/Float16.cuh"
13 #include "../utils/Tensor.cuh"
14
15 namespace faiss { namespace gpu {
16
17 void runL2Norm(Tensor<float, 2, true>& input,
18 Tensor<float, 1, true>& output,
19 bool normSquared,
20 cudaStream_t stream);
21
22 #ifdef FAISS_USE_FLOAT16
23 void runL2Norm(Tensor<half, 2, true>& input,
24 Tensor<half, 1, true>& output,
25 bool normSquared,
26 cudaStream_t stream);
27 #endif
28
29 } } // namespace