MCPcopy Create free account
hub / github.com/pytorch/executorch / embedding

Method embedding

examples/models/voxtral_tts/model.py:1232–1233  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1230
1231 @property
1232 def embedding(self) -> torch.Tensor:
1233 return self.embedding_sum / self.cluster_usage.clamp(min=1e-5)[:, None]
1234
1235 def decode(self, codes: torch.Tensor) -> torch.Tensor:
1236 """codes: (B, 1, T) -> (B, semantic_dim, T)"""

Callers 15

forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
embedding_q4gsw_implFunction · 0.80
forwardMethod · 0.80
forwardMethod · 0.80

Calls

no outgoing calls

Tested by 9

forwardMethod · 0.64
forwardMethod · 0.64
forwardMethod · 0.64
forwardMethod · 0.64
forwardMethod · 0.64
forwardMethod · 0.64
forwardMethod · 0.64
forwardMethod · 0.64
forwardMethod · 0.64