Skip to content

Commit bf5bf48

Browse files
CodemodService Botfacebook-github-bot
authored andcommitted
fbcode//faiss/gpu/test:test_utils
Differential Revision: D83230666
1 parent 1deba7b commit bf5bf48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

faiss/gpu/test/TestUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ void compareLists(
293293
if (t == -1) {
294294
EXPECT_EQ(lookup(refInd, query, result, dim1, dim2), t);
295295
} else {
296-
bool uniqueIndex = uniqueIndices.count(t) == 0;
296+
bool uniqueIndex = !uniqueIndices.contains(t);
297297
if (assertOnErr) {
298298
EXPECT_TRUE(uniqueIndex) << configMsg << " " << query << " "
299299
<< result << " " << t;

0 commit comments

Comments
 (0)