Summary
reconstruct_n on a IndexBinaryFlat throws a TypeError about a additional argument for the reconstructed vectors. Other Indexes simply return them. Also providing a None value simply crashes Python.
>>> import faiss
>>> index = faiss.IndexBinaryFlat(64)
>>> index.reconstruct_n(0, 4)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: reconstruct_n() missing 1 required positional argument: 'recons'
>>> index.reconstruct_n(0, 4, None) # crash!
EDIT: It looks like the reconstruct_n definition is missing for handle_IndexBinary (?)
|
def handle_IndexBinary(the_class): |
Platform
OS: Windows 10
Python version: 3.8.10
Faiss version: faiss-cpu==1.7.3
Installed from: pip
Running on:
Interface:
Reproduction instructions
See summary.
Summary
reconstruct_non aIndexBinaryFlatthrows a TypeError about a additional argument for the reconstructed vectors. Other Indexes simply return them. Also providing aNonevalue simply crashes Python.EDIT: It looks like the
reconstruct_ndefinition is missing forhandle_IndexBinary(?)faiss/faiss/python/class_wrappers.py
Line 694 in 52dee5c
Platform
OS: Windows 10
Python version: 3.8.10
Faiss version: faiss-cpu==1.7.3
Installed from: pip
Running on:
Interface:
Reproduction instructions
See summary.