MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / quantize

Method quantize

monai/networks/layers/vector_quantizer.py:230–233  ·  view source on GitHub ↗
(self, encodings: torch.Tensor)

Source from the content-addressed store, hash-verified

228 return self.quantizer.embed(embedding_indices=embedding_indices)
229
230 def quantize(self, encodings: torch.Tensor) -> torch.Tensor:
231 output = self.quantizer(encodings)
232 encoding_indices: torch.Tensor = output[2]
233 return encoding_indices

Callers 1

Calls

no outgoing calls

Tested by 1