MCPcopy Create free account
hub / github.com/LUMIA-Group/MemoryDecoder / DIST

Class DIST

knn_utils/saveEmbedMulti.py:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23import faiss.contrib.torch_utils
24
25class DIST(Enum):
26 l2 = auto()
27 dot = auto()
28
29 @staticmethod
30 def from_string(s):
31 try:
32 return DIST[s.lower()]
33 except KeyError:
34 raise ValueError()
35
36class KEY_TYPE(Enum):
37 last_ffn_input = auto()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected