Skip to content

Commit

Permalink
Revert D51029740: Namespace doesn't need to be followed by semicolon
Browse files Browse the repository at this point in the history
Differential Revision:
D51029740

Original commit changeset: 177e3f6e6b0a

Original Phabricator Diff: D51029740

fbshipit-source-id: c71ff386342902f2cfa6552d6a834ea3f2475e32
  • Loading branch information
Christopher Ponce de Leon authored and facebook-github-bot committed Nov 6, 2023
1 parent 438b519 commit 0c2243c
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions faiss/Clustering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ int split_clusters(
return nsplit;
}

} // namespace
}; // namespace

void Clustering::train_encoded(
idx_t nx,
Expand Down Expand Up @@ -617,7 +617,7 @@ void copy_columns(idx_t n, idx_t d1, const float* src, idx_t d2, float* dest) {
}
}

} // namespace
}; // namespace

void ProgressiveDimClustering::train(
idx_t n,
Expand Down
2 changes: 1 addition & 1 deletion faiss/IndexIVFSpectralHash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void binarize_with_freq(
}
}

} // namespace
}; // namespace

void IndexIVFSpectralHash::encode_vectors(
idx_t n,
Expand Down
2 changes: 1 addition & 1 deletion faiss/impl/AdditiveQuantizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,4 @@ struct AdditiveQuantizer : Quantizer {
virtual ~AdditiveQuantizer();
};

} // namespace faiss
}; // namespace faiss
2 changes: 1 addition & 1 deletion faiss/impl/ProductAdditiveQuantizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ struct ProductResidualQuantizer : ProductAdditiveQuantizer {
ProductResidualQuantizer();
};

} // namespace faiss
}; // namespace faiss
2 changes: 1 addition & 1 deletion faiss/impl/ResidualQuantizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@ struct ResidualQuantizer : AdditiveQuantizer {
std::vector<float> cent_norms;
};

} // namespace faiss
}; // namespace faiss
4 changes: 2 additions & 2 deletions faiss/invlists/InvertedLists.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ idx_t translate_list_no(const SliceInvertedLists* sil, idx_t list_no) {
return list_no + sil->i0;
}

} // namespace
}; // namespace

SliceInvertedLists::SliceInvertedLists(
const InvertedLists* il,
Expand Down Expand Up @@ -522,7 +522,7 @@ idx_t sum_il_sizes(int nil, const InvertedLists** ils_in) {
return tot;
}

} // namespace
}; // namespace

VStackInvertedLists::VStackInvertedLists(int nil, const InvertedLists** ils_in)
: ReadOnlyInvertedLists(
Expand Down
2 changes: 1 addition & 1 deletion faiss/python/python_callbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ struct PyThreadLock {
}
};

} // namespace
}; // namespace

/***********************************************************
* Callbacks for IO reader and writer
Expand Down
2 changes: 1 addition & 1 deletion faiss/utils/sorting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void parallel_merge(
}
}

} // namespace
}; // namespace

void fvec_argsort(size_t n, const float* vals, size_t* perm) {
for (size_t i = 0; i < n; i++) {
Expand Down

0 comments on commit 0c2243c

Please sign in to comment.