Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml-explore/mlx-examples
/ encode
Method
encode
musicgen/encodec.py:408–409 ·
view source on GitHub ↗
(self, hidden_states)
Source
from the content-addressed store, hash-verified
406
self.codebook = EncodecEuclideanCodebook(config)
407
408
def
encode(self, hidden_states):
409
return
self.codebook.encode(hidden_states)
410
411
def
decode(self, embed_ind):
412
return
self.codebook.decode(embed_ind)
Callers
nothing calls this directly
Calls
1
encode
Method · 0.45
Tested by
no test coverage detected