Skip to content

Commit

Permalink
fix a typo (#564)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandr Guzhva <[email protected]>
  • Loading branch information
alexanderguzhva authored May 15, 2024
1 parent fe5a052 commit da92ce7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/index/flat/flat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class FlatIndexNode : public IndexNode {
std::is_same<IndexType, faiss::IndexFlat>::value || std::is_same<IndexType, faiss::IndexBinaryFlat>::value,
"not support");
static_assert(std::is_same_v<DataType, fp32> || std::is_same_v<DataType, bin1>,
"FlatIndexNode only support float/bianry");
"FlatIndexNode only support float/binary");
search_pool_ = ThreadPool::GetGlobalSearchThreadPool();
}

Expand Down
2 changes: 1 addition & 1 deletion src/index/ivf/ivf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class IvfIndexNode : public IndexNode {
std::is_same<IndexType, faiss::IndexIVFScalarQuantizerCC>::value,
"not support");
static_assert(std::is_same_v<DataType, fp32> || std::is_same_v<DataType, bin1>,
"IvfIndexNode only support float/bianry");
"IvfIndexNode only support float/binary");
search_pool_ = ThreadPool::GetGlobalSearchThreadPool();
build_pool_ = ThreadPool::GetGlobalBuildThreadPool();
}
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/faiss/faiss/gpu/impl/IcmEncoder.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct IcmEncoderImpl {
std::shared_ptr<GpuResources> res;
int device;

DeviceTensor<float, 4, true> bterm; ///< bianry terms, size [M, M, K, K]
DeviceTensor<float, 4, true> bterm; ///< binary terms, size [M, M, K, K]
DeviceTensor<float, 3, true> codebooks; ///< codebooks, size [M, K, dims]

IcmEncoderImpl(
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/faiss/tests/test_local_search_quantizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def test_icm_encode(self):
n,
1)

# do icm encoding without pre-computed unary and bianry terms in Python
# do icm encoding without pre-computed unary and binary terms in Python
codebooks = faiss.vector_float_to_array(lsq.codebooks)
codebooks = codebooks.reshape(M, K, d).copy()
ref_codes = icm_encode_ref(x, codebooks, codes)
Expand Down

0 comments on commit da92ce7

Please sign in to comment.