[llvm-branch-commits] [llvm] [IR2Vec] Minor vocab changes and exposing weights (PR #143200)

Mircea Trofin via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jun 6 19:19:00 PDT 2025


================
@@ -83,9 +85,10 @@ void Embedding::scaleAndAdd(const Embedding &Src, float Factor) {
 bool Embedding::approximatelyEquals(const Embedding &RHS,
                                     double Tolerance) const {
   assert(this->size() == RHS.size() && "Vectors must have the same dimension");
-  for (size_t i = 0; i < this->size(); ++i)
+  for (size_t i = 0; i < this->size(); ++i) {
----------------
mtrofin wrote:

I not i

https://github.com/llvm/llvm-project/pull/143200


More information about the llvm-branch-commits mailing list