MCPcopy Create free account
hub / github.com/AIRMEC/HECTOR / query

Method query

extract_features.py:550–552  ·  view source on GitHub ↗
(self, vector, topn)

Source from the content-addressed store, hash-verified

548 return self
549
550 def query(self, vector, topn):
551 indices, dist = self.index_.knnQuery(vector, k=topn)
552 return indices, dist
553
554@torch.no_grad()
555def extract_features(model, device, wsi, filtered_tiles, workers, out_size, batch_size, n_last_blocks, avgpool_patchtokens, depths):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected