11 #include "../utils/Float16.cuh"
12 #include "../utils/Tensor.cuh"
14 namespace faiss {
namespace gpu {
17 void runSumAlongColumns(Tensor<float, 1, true>& input,
18 Tensor<float, 2, true>& output,
21 #ifdef FAISS_USE_FLOAT16
22 void runSumAlongColumns(Tensor<half, 1, true>& input,
23 Tensor<half, 2, true>& output,
28 void runAssignAlongColumns(Tensor<float, 1, true>& input,
29 Tensor<float, 2, true>& output,
32 #ifdef FAISS_USE_FLOAT16
33 void runAssignAlongColumns(Tensor<half, 1, true>& input,
34 Tensor<half, 2, true>& output,
40 void runSumAlongRows(Tensor<float, 1, true>& input,
41 Tensor<float, 2, true>& output,
45 #ifdef FAISS_USE_FLOAT16
46 void runSumAlongRows(Tensor<half, 1, true>& input,
47 Tensor<half, 2, true>& output,