mirror of
https://github.com/facebookresearch/faiss.git
synced 2026-10-12 02:13:36 +00:00
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/4792 Reviewed By: junjieqi Differential Revision: D92294287 Pulled By: trang-nm-nguyen fbshipit-source-id: 1fa39a5319527f00214258c4c97bd718025d86ad
28 lines
1.2 KiB
C++
28 lines
1.2 KiB
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#include "utils.h"
|
|
namespace faiss::perf_tests {
|
|
std::map<std::string, faiss::ScalarQuantizer::QuantizerType> sq_types() {
|
|
static std::map<std::string, faiss::ScalarQuantizer::QuantizerType>
|
|
sq_types = {
|
|
{"QT_8bit", faiss::ScalarQuantizer::QT_8bit},
|
|
{"QT_4bit", faiss::ScalarQuantizer::QT_4bit},
|
|
{"QT_8bit_uniform",
|
|
faiss::ScalarQuantizer::QT_8bit_uniform},
|
|
{"QT_4bit_uniform",
|
|
faiss::ScalarQuantizer::QT_4bit_uniform},
|
|
{"QT_fp16", faiss::ScalarQuantizer::QT_fp16},
|
|
{"QT_8bit_direct", faiss::ScalarQuantizer::QT_8bit_direct},
|
|
{"QT_6bit", faiss::ScalarQuantizer::QT_6bit},
|
|
{"QT_bf16", faiss::ScalarQuantizer::QT_bf16},
|
|
{"QT_8bit_direct_signed",
|
|
faiss::ScalarQuantizer::QT_8bit_direct_signed}};
|
|
return sq_types;
|
|
}
|
|
} // namespace faiss::perf_tests
|