Namespace faiss::lsq
-
namespace lsq
-
struct IcmEncoder
Subclassed by faiss::gpu::GpuIcmEncoder
Public Functions
-
explicit IcmEncoder(const LocalSearchQuantizer *lsq)
-
inline virtual ~IcmEncoder()
compute binary terms
-
virtual void set_binary_term()
-
virtual void encode(int32_t *codes, const float *x, std::mt19937 &gen, size_t n, size_t ils_iters) const
Encode vectors given codebooks
- Parameters:
codes – output codes, size n * M
x – vectors to encode, size n * d
gen – random generator
n – number of vectors
ils_iters – number of iterations of iterative local search
-
explicit IcmEncoder(const LocalSearchQuantizer *lsq)
-
struct IcmEncoderFactory
Subclassed by faiss::gpu::GpuIcmEncoderFactory
Public Functions
-
inline virtual IcmEncoder *get(const LocalSearchQuantizer *lsq)
-
inline virtual ~IcmEncoderFactory()
-
inline virtual IcmEncoder *get(const LocalSearchQuantizer *lsq)
-
struct LSQTimer
- #include <LocalSearchQuantizer.h>
A helper struct to count consuming time during training. It is NOT thread-safe.
-
struct LSQTimerScope
-
struct IcmEncoder