13 #include "../utils/Float16.cuh"
14 #include "../utils/Tensor.cuh"
16 namespace faiss {
namespace gpu {
19 void runSumAlongColumns(Tensor<float, 1, true>& input,
20 Tensor<float, 2, true>& output,
23 #ifdef FAISS_USE_FLOAT16
24 void runSumAlongColumns(Tensor<half, 1, true>& input,
25 Tensor<half, 2, true>& output,
30 void runAssignAlongColumns(Tensor<float, 1, true>& input,
31 Tensor<float, 2, true>& output,
34 #ifdef FAISS_USE_FLOAT16
35 void runAssignAlongColumns(Tensor<half, 1, true>& input,
36 Tensor<half, 2, true>& output,
41 void runSumAlongRows(Tensor<float, 1, true>& input,
42 Tensor<float, 2, true>& output,
45 #ifdef FAISS_USE_FLOAT16
46 void runSumAlongRows(Tensor<half, 1, true>& input,
47 Tensor<half, 2, true>& output,