/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "../utils/Float16.cuh" #include "../utils/Tensor.cuh" namespace faiss { namespace gpu { void runL2Norm(Tensor& input, bool inputRowMajor, Tensor& output, bool normSquared, cudaStream_t stream); #ifdef FAISS_USE_FLOAT16 void runL2Norm(Tensor& input, bool inputRowMajor, Tensor& output, bool normSquared, cudaStream_t stream); #endif } } // namespace