mirror of
https://github.com/facebookresearch/faiss.git
synced 2025-06-03 21:54:02 +08:00
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3966 This actually enables the linting. Manual changes: - tools/arcanist/lint/fbsource-licenselint-config.toml - tools/arcanist/lint/fbsource-lint-engine.toml Automated changes: `arc lint --apply-patches --take LICENSELINT --paths-cmd 'hg files faiss'` Reviewed By: asadoughi Differential Revision: D64484165 fbshipit-source-id: 4f2f6e953c94ef6ebfea8a5ae035ccfbea65ed04
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 <faiss/perf_tests/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
|