Skip to content

Commit 960d1a7

Browse files
Subhadeep Karanfacebook-github-bot
authored andcommitted
Fix typos in comments and documentation (#4664)
Summary: as the title suggests Reviewed By: juancarpio27 Differential Revision: D86405491
1 parent 3ffec12 commit 960d1a7

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

faiss/impl/ResultHandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ struct RangeSearchBlockResultHandler : BlockResultHandler<C, use_sel> {
572572
RangeSearchPartialResult* pres;
573573
// there is one RangeSearchPartialResult structure per j0
574574
// (= block of columns of the large distance matrix)
575-
// it is a bit tricky to find the poper PartialResult structure
575+
// it is a bit tricky to find the proper PartialResult structure
576576
// because the inner loop is on db not on queries.
577577

578578
if (pr < j0s.size() && j0 == j0s[pr]) {

faiss/python/class_wrappers.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ def replacement_vt_train(self, x):
10931093
self.train_c(n, swig_ptr(x))
10941094

10951095
replace_method(the_class, 'train', replacement_vt_train)
1096-
# apply is reserved in Pyton...
1096+
# apply is reserved in Python...
10971097
the_class.apply_py = apply_method
10981098
the_class.apply = apply_method
10991099
replace_method(the_class, 'reverse_transform',
@@ -1164,7 +1164,7 @@ def replacement_train_inplace(self, x):
11641164
The index must be trained before vectors can be added to it.
11651165
11661166
This call WILL change the values in the input array, because
1167-
of two scaling proceduces being performed inplace.
1167+
of two scaling procedures being performed inplace.
11681168
11691169
Parameters
11701170
----------
@@ -1262,7 +1262,7 @@ def handle_SearchParameters(the_class):
12621262
""" this wrapper is to enable initializations of the form
12631263
SearchParametersXX(a=3, b=SearchParamsYY)
12641264
This also requires the enclosing class to keep a reference on the
1265-
sub-object, since the C++ code assumes the object ownwership is
1265+
sub-object, since the C++ code assumes the object ownership is
12661266
handled externally.
12671267
"""
12681268
the_class.original_init = the_class.__init__
@@ -1314,7 +1314,7 @@ def replacement_insert(self, codes, inserted=None):
13141314
replace_method(the_class, 'insert', replacement_insert)
13151315

13161316
######################################################
1317-
# Syntatic sugar for NeuralNet classes
1317+
# Syntactic sugar for NeuralNet classes
13181318
######################################################
13191319

13201320

@@ -1405,7 +1405,7 @@ def from_array(self, array, bias=None):
14051405
the_class.from_torch = from_torch
14061406

14071407
######################################################
1408-
# Syntatic sugar for QINCo and QINCoStep
1408+
# Syntactic sugar for QINCo and QINCoStep
14091409
######################################################
14101410

14111411

faiss/python/extra_wrappers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def add_result(self, D, I):
258258
def add_result_subset(self, subset, D, I):
259259
"""
260260
Add results for a subset of heaps.
261-
D, I should hold resutls for all the subset
261+
D, I should hold results for all the subset
262262
as a special case, if I is 1D, then all ids are assumed to be the same
263263
"""
264264
nsubset, kd = D.shape
@@ -591,7 +591,7 @@ def assign(self, x):
591591

592592

593593
###########################################
594-
# Packing and unpacking bistrings
594+
# Packing and unpacking bitstrings
595595
###########################################
596596

597597
def is_sequence(x):

0 commit comments

Comments
 (0)