Namespace marian

namespace marian

Detailed Description

In this file we bascially take the faiss::IndexLSH and pick it apart so that the individual steps can be implemented as Marian inference operators.

We can encode the inputs and weights into their bitwise equivalents, apply the hashing rotation (if required), and perform the actual search.

This also allows to create parameters that get dumped into the model weight file. This is currently a bit hacky (see marian-conv), but once this is done the model can memory-map the LSH with existing mechanisms and no additional memory is consumed to build the index or rotation matrix.

Namespaces

Classes

Enums

Functions

Typedefs

Variables