-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird type conversions or naming in Faiss #3628
Comments
@mdouze would you like to provide some more context? For example, what does prompt this question? |
The context in which this problematic is when you want to implement a custom SWIG wrapper for a small C++ object as described in I tried to do it in the following code but there is no way to define |
TODO is (1) fix it and (2) add a test with a small C++ wrapper that actually tests this so that we catch regressions -- and this is also quite platform dependent as uint64_t is defined differently on platforms like windows. |
Started working on this in #3699 |
Another datapoint: on the mac (conda 1.8.0), ttypes.py gives:
so wrong for int32, uint32 |
Summary
Platform
OS: Linux 64 intel
Faiss version: 1.8.0
Installed from: conda
Running on: CPU
Interface: Python
Reproduction instructions
The type mapping between c++ and Python integer represetnations is weitrd.
The script ttypes.py gives
It is as if SWIG assigned a random name among all typedefs for a given type.
The text was updated successfully, but these errors were encountered: